|

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

GoalCommand
Check that a website or device repliesping example.com
Keep pinging until you stop itping /t example.com
See each router between you and a sitetracert example.com
Trace faster, without name lookupstracert /d example.com
Measure packet loss at each hoppathping example.com
Find your router’s addressipconfig

Open Command Prompt

  1. Select Start and type cmd.
  2. Select Command Prompt from the results.
  3. 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 seeWhat it tells you
Reply from the address, with a time in msThe device answered, so the path to it works
Request timed outNo reply arrived within the wait time, which is 4000 ms (4 seconds) by default
IP address replies but the name does notA 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.

  1. Run ipconfig and note the Default Gateway address, which is your router.
  2. Run ping followed by that router address.
  3. Run ping 8.8.8.8, a public address, to test the internet without any name lookup.
  4. Run ping example.com to 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

OptionWhat it does
/tKeeps sending until you stop it; Ctrl+Break shows statistics and Ctrl+C quits
/n 10Sends 10 requests instead of 4
/aLooks up the host name for an IP address
/w 1000Waits 1000 ms for each reply instead of 4000
/4 or /6Forces 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

ColumnMeaning
FirstThe hop number, starting at 1
Three middle columnsRound-trip time in milliseconds for three probes
LastThe 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

OptionWhat it does
/dSkips name lookups for routers, which can speed up the results
/h 15Limits the trace to 15 hops
/w 1000Waits 1000 ms for each reply instead of 4000
/4 or /6Restricts 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

ResultNext step
Cannot reach the routerRestart the router and check the cable or Wi-Fi; see Ethernet not working in Windows 11
Replies drop in and out on Wi-FiSee Wi-Fi keeps disconnecting in Windows 11
Router works, internet does notRestart the modem, then contact your internet provider
Still unexplainedTry 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.

Official sources

Leave a Reply

Your email address will not be published. Required fields are marked *