Sub topic 16
Windows network symptoms and first-line checks
This chapter assumes you know what an IP address, a default gateway, DNS, and DHCP are. It also assumes you can open an elevated Command Prompt. The goal is to work from the symptom to the failing layer with the fewest, least destructive steps.
Read the symptom first
Windows shows a few common network symptoms. Each one points to a different layer.
| Symptom | Likely cause | First check |
|---|---|---|
| Limited connectivity, address starts with 169.254 | No DHCP reply, so Windows assigned itself an APIPA address | Cable, Wi-Fi, DHCP server |
| Connected, but no internet | Wrong gateway, DNS failure, or proxy setting | `ping` the gateway, then a public IP |
| Websites fail by name but work by IP | DNS failure | `nslookup` |
| Only one site fails | Site, proxy, or hosts file issue | Test another site and device |
| IP address conflict message | Two devices share one address | `ipconfig /all`, then renew |
Work from the bottom up
Check the physical layer first, because it is quick. Look at the cable, the link light, airplane mode, and whether the adapter is disabled in Network Connections. Then test each layer in order.
ipconfig /all
ping 127.0.0.1
ping 192.168.1.1
ping 8.8.8.8
ping www.example.comReplace 192.168.1.1 with your default gateway from the ipconfig /all output. Each ping tests one more step:
127.0.0.1tests the local TCP/IP stack.- The gateway tests the local network.
8.8.8.8tests routing to the internet without using DNS.- The hostname tests DNS.
The first failure tells you where to look.
Common fixes
Start with the least destructive fix. Renewing an address changes nothing permanent.
ipconfig /release
ipconfig /renew
ipconfig /flushdns
nslookup www.example.com/release and /renew request a new DHCP lease. /flushdns clears the DNS cache. nslookup tests name resolution directly. If the stack itself looks damaged, run netsh winsock reset and netsh int ip reset, then restart. These commands reset settings, so use them after the simpler fixes.
Also check for a manually set static IP, DNS server, or proxy that no longer matches the network. A wrong static gateway is a classic cause of "connected, no internet". Wrong time can also break secure sites, because certificates fail validation. That link is covered in the time drift chapter.
Exercise
A laptop shows "Limited connectivity" and ipconfig /all lists an address of 169.254.12.7. What does this mean, and what is a sensible first step?
Show answer
The laptop did not get a reply from a DHCP server, so Windows gave itself an APIPA address. First check the cable or Wi-Fi connection. Then run ipconfig /release and ipconfig /renew, and confirm the DHCP server or router is working.
Exercise
A user can ping 8.8.8.8 but cannot open www.example.com. Which layer is failing, and which command helps you confirm it?
Show answer
DNS is failing, because routing to the internet works. Run nslookup www.example.com to confirm. Then check the DNS server settings and run ipconfig /flushdns.