The short answer
To troubleshoot a network is to work out why a connection or service is failing, narrow the cause down to a likely fault, and fix it or hand it to someone who can. The work is a sequence of checks. You start with broad questions, such as which devices are affected, and move toward narrow tests. It is not one tool or one command.
What the work covers
Network troubleshooting usually involves a few kinds of fault:
- Connection. The device has no link to the network at all, for example because of a loose cable or a Wi-Fi network that will not connect.
- Addressing. The device has no usable IP address, or two devices share one.
- Name lookup. Addresses work, but names such as example.com do not resolve. That usually points to DNS.
- Speed. Everything works, but slowly.
- Services. One particular app or server cannot be reached while other traffic is fine.
Each kind of fault has a different first check, which is why the first questions matter.
Questions to ask first
Before you run any command, gather a few facts:
- Is it one device, a group, or everyone? One device usually points to that device. Everyone points to something shared, such as the router, the switch, the modem, or the internet provider.
- Did it start suddenly or gradually? A sudden change often follows an update, a new device, or a power cut.
- What changed recently? Moved equipment, new software, and new settings all matter.
- What exact symptom or message do you see? Windows can show “No internet, secured” on a Wi-Fi network, which points to a different problem than a page that simply loads slowly.
A worked example: the browser says there is no internet
Suppose one laptop’s browser fails, but a phone on the same Wi-Fi loads pages. That points at the laptop rather than the router. Then:
- Check the address. On Windows, run
ipconfig. An address starting with 169.254 usually means the laptop did not get one from the DHCP server, the service that hands out addresses on most home networks. - Ping the default gateway. This is usually the router. If this fails, the fault is on the local side.
- Ping an outside address such as 8.8.8.8. If this works but the browser still fails, name lookup is a likely suspect, so test a name with
nslookup. - If nothing outside answers, check whether the router or the internet provider is having trouble before changing the laptop again.
Each step rules out part of the path, so you can stop at the first step that fails.
Tools you will likely use
ipconfigon Windows, orip addron Linux, shows the address and the gateway.pingtests whether another address answers.tracerton Windows, ortracerouteon Linux, shows the path and where it stops.nslookupon Windows, ordigon Linux, tests name lookup.
These are built in or easy to install on most systems. The command-line checks in the guide on how to test a computer network cover them in more depth.
When the fault is outside your network
Sometimes nothing on your side is broken. A provider outage, a fault in a street cabinet, or a problem at the service’s end can look like a local failure. The clues are that other devices on other connections also fail, the provider’s status page reports an issue, or the same site fails from other networks too.
When that happens, the useful work is to write down the evidence and pass it on to the provider or the service owner with clear facts, such as the time of the failure and the results of your tests.
Writing down what you found
Keep a short record: the symptom, the checks you ran and what each one showed, the cause, and the fix. The record turns a one-off fault into something you can compare with the next one, and it makes handing off to someone else much easier. The method in “what are the 5 basic troubleshooting steps for a computer” gives a simple order for doing this, and “what are the 10 common network problems” lists the usual causes to check against your notes.