Skip to content
Free website migration on every plan, done by our team.Learn more ›
Performance

How to use ping and traceroute to find network problems

Run ping and traceroute on Windows, Mac and Linux, read the results, tell a real problem from a harmless timeout, and know what to send your host.

Short answer: ping example.com checks whether a server answers and how long a round trip takes. traceroute example.com (tracert on Windows) shows every network hop between you and the server, so you can see where delay or loss starts. Timeouts on a single hop are often harmless; a problem that starts at one hop and continues to the end is the one that matters.

When a website feels slow or won't load, these two commands tell you whether the problem is your connection, the route in between, or the server. They are built into every computer.

Ping: is it answering, and how fast?

Open a terminal (Command Prompt or PowerShell on Windows, Terminal on Mac and Linux) and run:

ping example.com

On Mac and Linux ping keeps going until you press Ctrl+C; add -c 4 to send four. Windows sends four by default.

A typical reply looks like:

64 bytes from 203.0.113.24: icmp_seq=1 ttl=54 time=38.2 ms
  • time is the round-trip time (RTT) in milliseconds. Lower is better; what is "good" depends on distance (see what latency is).
  • ttl counts down at every router on the way; you can mostly ignore it.
  • The summary at the end shows packet loss. Anything above 0% on a steady connection is worth looking into.

No reply doesn't always mean down. Many servers and firewalls ignore ping (ICMP) on purpose. If ping fails but the website loads, everything is fine. To check a website properly, use our website checker or read is my website down?.

Traceroute: where is the problem?

traceroute example.com      # Mac and Linux
tracert example.com         # Windows

Each line is one hop, a router your traffic passes through, with three timings:

 1  192.168.1.1        1.2 ms   1.0 ms   1.1 ms
 2  100.64.0.1         9.8 ms  10.4 ms   9.6 ms
 3  * * *
 4  198.51.100.9      21.5 ms  22.0 ms  21.7 ms
 ...
12  203.0.113.24      38.4 ms  38.1 ms  38.9 ms

How to read it:

  • Hop 1 is usually your own router; high times here point at your Wi-Fi or local network.
  • ** * means that router didn't answer the probe. Many routers are set not to. If later hops answer normally, ignore it.
  • A jump that stays. If times jump at hop 7 and every hop after is also high, the delay starts around hop 7. A jump on one hop that disappears on the next is just that router answering probes slowly, not a real problem.
  • The last line should be the server. If the trace stops before it, something on the way (or the server's firewall) isn't answering traceroute probes.

mtr: ping and traceroute together

mtr runs a traceroute continuously and shows loss and timing for every hop, which is the best way to catch problems that come and go. On Linux install it with your package manager (sudo apt install mtr) and run mtr example.com; on Mac it is available through Homebrew, and WinMTR does the same on Windows.

What to send your host

If a site is slow or unreachable for you but works for others, send your host:

  1. The output of traceroute (or tracert) to the site, run while the problem is happening.
  2. Your public IP address, from What is my IP?.
  3. The time it happened and your rough location and provider.

That is usually enough for a network team to see whether the issue is on their side, in the route, or with your provider.

Frequently asked questions

What is a good ping time?

It depends on distance. Under about 30 ms is typical for a server in the same region, 60 to 150 ms for one on another continent. Steady times matter as much as low ones.

Why does traceroute show stars?

The router at that hop didn't answer the probe. Many routers are set to ignore them. It only matters if the trace never reaches the server and the website itself doesn't load.

Why does ping fail when the website works?

The server or its firewall ignores ping requests. That is a common security setting and doesn't affect visitors.

What causes packet loss?

Usually a weak Wi-Fi signal, a congested connection or a faulty link on the route. Test on a cable or another network to see if it follows you; if it starts at one hop and continues to the end, show your provider or host the mtr results.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.