How To Use Ping And Tracert In Windows 11 (2026)
Ping and tracert are two built-in Windows commands that tell you whether your PC can reach another device or website.
Ping answers the simple question of whether anything replies, and tracert shows each stop along the way so you can see where a connection breaks.
Both run in Command Prompt on Windows 11, and Microsoft documents every option on Microsoft Learn.
Quick answer
| Goal | Command |
|---|---|
| Check that a website or device replies | ping example.com |
| Keep pinging until you stop it | ping /t example.com |
| See each router between you and a site | tracert example.com |
| Trace faster, without name lookups | tracert /d example.com |
| Measure packet loss at each hop | pathping example.com |
| Find your router’s address | ipconfig |
Open Command Prompt
- Select Start and type cmd.
- Select Command Prompt from the results.
- Type a command and press Enter.
You do not need administrator rights for ping, tracert or pathping.
Microsoft notes these commands work only if Internet Protocol (TCP/IP) is installed on a network adapter in Network Connections, which is the normal setting.
Run a basic ping
Type ping followed by a website name or an IP address, for example ping example.com.
Ping sends ICMP echo requests and shows the echo replies it gets back, along with the round-trip time.
By default it sends 4 requests with 32 bytes of data each.
Each reply line shows the number of bytes, the time in milliseconds, and the TTL of the reply.
What the ping results mean
| What you see | What it tells you |
|---|---|
| Reply from the address, with a time in ms | The device answered, so the path to it works |
| Request timed out | No reply arrived within the wait time, which is 4000 ms (4 seconds) by default |
| IP address replies but the name does not | A name resolution problem, so check the Hosts file and DNS |
Microsoft describes ping as the main TCP/IP command for checking connectivity, reachability and name resolution.
A timeout does not say why the reply is missing, because a device or firewall can also be set not to answer pings.
Ping in the right order
Testing from the nearest device outward shows which step fails first.
- Run
ipconfigand note the Default Gateway address, which is your router. - Run
pingfollowed by that router address. - Run
ping 8.8.8.8, a public address, to test the internet without any name lookup. - Run
ping example.comto test the name lookup as well.
If the router fails, the problem is between your PC and the router, so look at the Wi-Fi or cable.
If the router works but the public address fails, the problem is on the router’s connection to the internet.
If the address works but the name fails, the cause is DNS, and our guide to changing the DNS server in Windows 11 shows how to switch it.
Not sure what your own addresses are?
See how to find your IP and MAC address in Windows 11.
Useful ping options
| Option | What it does |
|---|---|
/t | Keeps sending until you stop it; Ctrl+Break shows statistics and Ctrl+C quits |
/n 10 | Sends 10 requests instead of 4 |
/a | Looks up the host name for an IP address |
/w 1000 | Waits 1000 ms for each reply instead of 4000 |
/4 or /6 | Forces IPv4 or IPv6 when you type a name |
A long ping /t is handy while you wiggle a cable or move closer to the router, because you can watch the replies change.
Run tracert to see the path
Type tracert example.com and press Enter.
Tracert sends echo requests with a time to live (TTL) that rises by one each time, and each router that the packet expires on reports back.
It stops when the destination replies or after 30 hops, which is the default limit.
Read the tracert output
| Column | Meaning |
|---|---|
| First | The hop number, starting at 1 |
| Three middle columns | Round-trip time in milliseconds for three probes |
| Last | The IP address or name of that router |
Hop 1 is normally your own router, so a failure there points at your home network.
Microsoft says some routers do not return the expired-packet message, so that hop shows a row of asterisks and “Request timed out”.
A single timed-out hop in the middle is not a fault if later hops still answer and the trace completes.
Microsoft’s troubleshooting page also says to read the times as a trend, because a sudden jump suggests delay on the link between those two hops.
Useful tracert options
| Option | What it does |
|---|---|
/d | Skips name lookups for routers, which can speed up the results |
/h 15 | Limits the trace to 15 hops |
/w 1000 | Waits 1000 ms for each reply instead of 4000 |
/4 or /6 | Restricts the trace to IPv4 or IPv6 |
Use pathping to find packet loss
Pathping combines tracert and ping, so type pathping example.com to run both.
It first lists the route, then spends a minute or two sending 100 requests to each router before it prints a statistics table.
The table shows the round-trip time and the percentage of packets lost at each hop.
Microsoft says loss on a link row, shown as a vertical bar, points to a congested link.
Loss on a router row can mean the router is overloaded, but a router can drop packets sent to itself and still forward other traffic.
Add /n to skip name lookups, as in pathping /n example.com.
What to do with the results
| Result | Next step |
|---|---|
| Cannot reach the router | Restart the router and check the cable or Wi-Fi; see Ethernet not working in Windows 11 |
| Replies drop in and out on Wi-Fi | See Wi-Fi keeps disconnecting in Windows 11 |
| Router works, internet does not | Restart the modem, then contact your internet provider |
| Still unexplained | Try a network reset as a last resort |
Keep the output if you call your provider, because the last hop that answered tells them where to look.