Troubleshooting a Network Connection
Work up from the cable through IP settings, the gateway, DNS and the path with ping, ipconfig, tracert and nslookup on Windows and Mac, find the layer that failed, and escalate with proof.
Table of contents
"The internet is down" is one of the most common tickets on any help desk, and it rarely means the internet is down. Something between the device and what the user wants has failed, and your job is to find which link. Start at the bottom, with the physical connection, and test each layer in order. Each test that passes rules out everything below it. Commands were checked on Windows 11, version 26H2, and macOS 27 (Golden Gate). Run them in Command Prompt or PowerShell on Windows, or Terminal on a Mac.
What You Will Be Able to Do
- Scope a network ticket with a few questions before you change anything.
- Test link, IP settings, gateway, internet, DNS and path, in that order.
- Run and read ping, ipconfig, tracert and nslookup, and their Mac versions.
- Renew an address and clear the DNS cache safely, even over a remote session.
- Escalate with test results the network team can act on at once.
Scope It First
Use your usual method: gather facts, test one theory at a time and write down each result. Four questions narrow a network ticket fast.
| Question | If the answer is | Points toward |
|---|---|---|
| Is anyone else affected? | Many users in one area | Switch, Wi-Fi, DHCP or internet line |
| One site or app, or everything? | One site or app | That service, DNS or a firewall |
| Wired or Wi-Fi? | Wi-Fi only | The wireless network |
| Did anything change? | A move, update or new device | Start with the change |
If a whole office or floor is down, tell your lead right away. More tickets are coming, and one incident is easier to work than twenty. If a VPN is connected, disconnect it and test again, if your policy allows, to see whether the VPN is the cause.
The Ladder
Test in this order. Stop at the first rung that fails, because the fault is there.
| Rung | Test | Proves |
|---|---|---|
| 1. Link | Lights, cable, adapter status | Physically connected |
| 2. IP settings | ipconfig /all, networksetup | Sane address settings |
| 3. Gateway | Ping the gateway | Reaches the local router |
| 4. Internet | Ping 1.1.1.1 | Traffic leaves the building |
| 5. DNS | nslookup a name | Names turn into addresses |
| 6. Path | tracert or traceroute | The far end is reachable |
Rung 1: Link
- Wired. Check the cable at both ends and look for the link light on the computer's port or dock. No light means no link. Try a known-good cable and a different jack. With a dock, plug the cable straight into the laptop, if it has a port, to rule the dock out.
- Wi-Fi. Confirm the device has joined the right network, not a guest network. Signal problems are their own topic.
- Adapter. Check that airplane mode is off and the adapter is turned on. Windows 11 shows the connection under Settings > Network & internet. In
ipconfig /all, "Media disconnected" means Windows sees no link on that adapter. On a Mac,ifconfig en0showsstatus: activeorstatus: inactive.networksetup -listallhardwareportsshows which name, such as en0, is Wi-Fi or Ethernet.
Warning: Do not unplug or move cables in a network closet or on a switch without your team's approval. One wrong cable can take down a floor, the phones or the cameras.
Rung 2: IP Settings
On Windows, run ipconfig /all. On a Mac, run networksetup -getinfo "Wi-Fi" (or the wired port's name), and scutil --dns for the DNS servers. The fastest sanity check is to compare the results with a working computer nearby.
| What you see | What it means | Next step |
|---|---|---|
| 169.254.x.x | No DHCP answer | Recheck the link, then renew |
| No address at all | Adapter not getting settings | Check the adapter, then renew |
| An unexpected range | Wrong network, or a rogue DHCP server | Compare with a neighbor |
| No default gateway | Cannot leave the local network | Renew, or check static settings |
| Public DNS on a work PC | Internal names will fail | Restore the company DNS |
| Matches a working neighbor | Settings are fine | Go to rung 3 |
Renew the address.
- Windows:
ipconfig /renew. On a computer in front of you, you can runipconfig /releasefirst to drop the old lease. - Mac: Apple menu > System Settings > Network, select the service, then Details > TCP/IP > Renew DHCP Lease. The button appears only when the service uses DHCP.
Warning: Do not run
ipconfig /releaseover a remote session. It drops the computer's address, cuts off your session, and the computer may not come back without someone at the desk. Runipconfig /renewon its own.
If the renew fails on a known-good link, ask whether others on the same switch or Wi-Fi are getting addresses. If they are not, the DHCP server or the network is down, so escalate.
Rung 3: The Gateway
Ping the default gateway address you found in rung 2, such as 192.168.1.1.
- Windows:
ping 192.168.1.1sends four tries and stops. Add/tto keep going until you press Ctrl+C. - Mac:
ping -c 4 192.168.1.1sends four. Without-c, it runs until you press Control-C.
| Result | Meaning |
|---|---|
| Reply from 192.168.1.1, time=3ms | The local network works |
| Request timed out (Windows) | No reply came back in time |
| Request timeout for icmp_seq (Mac) | No reply came back in time |
| Destination host unreachable, from your own address | Your PC could not find the target on the local network |
Count the losses too. Four sent and three received is 25 percent loss, a sign of a damaged cable, a weak signal or an overloaded link. Run a longer ping, such as ping /n 50 on Windows or ping -c 50 on a Mac, and compare with a working neighbor.
A failed ping does not prove a device is down. Many devices and firewalls ignore ping on purpose, including Windows' own firewall on many networks. If the gateway stays silent but rung 4 works, traffic is flowing through the gateway, so it is fine and simply ignores ping.
Rung 4: The Internet by Address
Ping a well-known public address, such as ping 1.1.1.1 (Cloudflare's public DNS) or ping 8.8.8.8 (Google's). If the gateway answers and these do not, traffic is not getting out past the firewall, the internet line or the provider, so check who else is affected and escalate. Some company networks block outbound ping, so learn what your network allows.
Rung 5: DNS
Rung 4 used an address. Now test a name.
- Both systems:
nslookup example.comasks your DNS server and shows which server answered. "Non-authoritative answer" is normal. It means the answer came from a resolver, not the domain's own server. - Compare servers:
nslookup example.com 1.1.1.1asks a public resolver directly. If that works and the plain lookup fails, your configured DNS server is the problem.
If an address works and a name fails, it is DNS. If one computer gets an old or wrong answer that no one else gets, clear its cache and check its hosts file for a stale entry.
- Windows:
ipconfig /flushdns - Mac:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. It asks for an admin password and prints nothing when it works.
Never fix DNS on a work computer by typing in a public DNS server. Websites come back, but internal names, such as the file server, break, and the real fault stays hidden. Report the failing DNS server instead.
Rung 6: The Path
If the internet works but one destination does not, trace the route to it.
- Windows:
tracert example.comuses ICMP and stops at 30 hops by default. Add/dto skip name lookups and finish faster. - Mac:
traceroute example.comsends UDP probes by default, which some firewalls drop, and allows up to 64 hops. Add-Ito use ICMP like Windows, or-nto skip names.
Each line is one router, called a hop, with three round-trip times.
- Asterisks on one hop, with later hops answering, are normal. That router does not answer trace probes.
- Asterisks from one hop to the end mean the trace stopped there. If that hop is inside your network, escalate it to your team. If it is past your internet provider, the fix is out of your hands, but the trace is the proof to send.
- A jump in time that carries on to every later hop shows where the delay starts. A spike at one hop that later hops do not show is that router answering slowly, not a real problem.
On Windows, pathping adds loss figures for each hop, which helps on "it is slow" tickets, but takes several minutes.
If the path reaches the server but the app fails, the network is probably fine. Test the app's port, for example with Test-NetConnection server -Port 443 in PowerShell or nc -vz server 443 on a Mac, or hand it to the app's owner.
Worked Example: One Desk, No Address
A ticket says, "Nothing works on my PC." The coworker at the next desk is fine. The user is on Windows 11 with a wired dock.
- Link. The dock's link light is on, and
ipconfig /allshows the Ethernet adapter connected. - IP settings. IPv4 address 169.254.31.7 and no gateway. The neighbor has 10.40.12.88 with gateway 10.40.12.1.
- Theory. The link is up, but DHCP is not answering through this jack. Its switch port may be set to the wrong network, or broken.
- Test.
ipconfig /renewfails. You move the dock's cable to the spare jack beside it. Renew now gives 10.40.12.91 and the gateway.ping 10.40.12.1replies,ping 1.1.1.1replies, andnslookup intranetresolves. - Conclusion. The PC is fine. Wall jack 3B-22 or its switch port is the fault.
- Escalate. "Jack 3B-22: link up, no DHCP (169.254.31.7). Same PC on jack 3B-23 gets 10.40.12.91, and gateway, internet and DNS tests pass. Please check the switch port and its network for 3B-22." The user works from the spare jack in the meantime.
Worked Example: Names Fail on a Mac
A ticket says websites will not load on a Mac laptop. Wi-Fi shows connected.
networksetup -getinfo "Wi-Fi"shows 192.168.50.23, mask 255.255.255.0, router 192.168.50.1. That looks right.ping -c 4 192.168.50.1replies in about 4 ms.ping -c 4 1.1.1.1replies in about 18 ms. The internet works by address.nslookup example.comends with "connection timed out; no servers could be reached."scutil --dnsshows the DNS server is 192.168.50.5.nslookup example.com 1.1.1.1works, so the company's DNS server at 192.168.50.5 is not answering.- Three more tickets have come in from the same floor in ten minutes. This is a DNS server outage, not a laptop problem.
- Escalate to the server team with these results and link the tickets. Changing every laptop's DNS by hand would only hide the outage.
Symptom Guide
| Symptom | Likely layer | First check |
|---|---|---|
| Whole office down | Internet line, firewall, core switch | Ping gateway, then 1.1.1.1 |
| One desk down, Wi-Fi works there | Cable, jack or switch port | Known-good cable, other jack |
| One site fails, others work | That site or the path | tracert, test from another network |
| Slow or drops out | Loss on the link or path | Long ping, pathping |
When to Stop and Escalate
Your part is to test and document. Unless your role says otherwise, these belong to the network or systems team:
- Changing switch ports, VLANs, firewall rules or the router.
- Editing DHCP scopes or DNS records.
- Changing a server's, printer's or network device's address.
- Calling the internet provider.
Escalate with the user, device and location, each test with its result, and when it started. "Internet down" waits in a queue. "Gateway answers, 1.1.1.1 times out, 3 floors affected since 9:40" gets worked.
Windows 11 also has Settings > Network & internet > Advanced network settings > Network reset. It removes and reinstalls every network adapter, resets their settings to defaults and restarts the computer, so saved Wi-Fi networks and VPN software may need to be set up again. Use it only after the ladder, where your team allows it.
Common Mistakes
| Mistake | What it costs |
|---|---|
| Restarting things before scoping | Lost clues and a fault that comes back |
| ipconfig /release over a remote session | A lost session and a trip to the desk |
| Treating a failed ping as proof | Chasing a device that just ignores ping |
| Public DNS on a work PC | Broken internal names, hidden real fault |
| Network reset as the first step | Lost settings, and still no answer |
| Escalating with "internet is down" | A slow queue and the same questions back |
Check Your Understanding
1. You are on a remote session to a PC that needs a new lease. Which command do you run, and which do you avoid?
Run ipconfig /renew. Avoid ipconfig /release, which drops the computer's address and your session with it.
2. A trace shows hops 1 to 6 answering, three asterisks at hop 7, and hops 8 to 12 answering up to the destination. Is hop 7 the problem?
No. That router does not answer trace probes, but traffic passes through it, as the later hops prove.
3. The gateway does not answer ping, but 1.1.1.1 does. What does that tell you?
The gateway works, since traffic is passing through it. It is set to ignore ping.
4. Five users on the third floor report no network, and the rest of the building is fine. What does the scope suggest?
Something that floor shares, such as its switch, its network closet or its Wi-Fi. Report it as one incident with the list of users.
Key Takeaways
- Scope first: who is affected, what fails, wired or Wi-Fi, and what changed.
- Climb the ladder: link, IP settings, gateway, internet by address, DNS, path. The first rung that fails is the fault.
- A 169.254 address points to DHCP or the link. A name that fails while the address works points to DNS.
- A silent ping is not proof. Confirm with the next rung.
- Over a remote session, renew without releasing.
- Escalate with each test and its result.