How to Use Traceroute to See the Path of Your Traffic
Run traceroute on Windows, macOS or Linux, read each column correctly and avoid the common mistakes that point blame at the wrong router.
Key takeaways
- Each line is one hop, usually a router, found by sending probes that are allowed to travel only that far.
- Asterisks mean no reply arrived for a probe, which often is harmless if later hops answer.
- Delay that appears at one hop and disappears afterward is not slowing your traffic.
- A trace shows the outbound path only; replies may come back a different way.
- Collect a trace from a working time too, so you have something to compare against.
Traceroute lists the routers your traffic passes through on its way to a destination, with the time it took to hear back from each one. On Windows you run tracert example.com. On macOS and most Linux systems you run traceroute example.com.
Running it takes seconds. Reading it correctly is the real skill, because several normal behaviors look like faults. This guide covers the commands, the output and the traps.
How it works
Every IP packet carries a hop counter, described in TTL and hop limits. A router that reduces it to zero drops the packet and sends back a "time exceeded" message from its own address.
Traceroute sends probes with the counter set to 1, then 2, then 3, and so on. Each round dies one router further along, and each expiry message identifies another hop. When the destination itself replies, the trace ends.
Running it
On Windows, in Command Prompt or PowerShell:
tracert example.com
tracert -d example.com
tracert -4 example.com
tracert -6 example.com
tracert -h 20 example.com -d skips name lookups, which makes the trace much faster. -4 and -6 force the address family, and -h sets the maximum number of hops.
On macOS or Linux:
traceroute example.com
traceroute -n example.com
traceroute -m 20 example.com
sudo traceroute -I example.com
traceroute6 example.com -n skips name lookups and -m sets the maximum hops. -I uses ICMP echo probes. Some Linux systems don't install traceroute by default; install it from your package manager, or try tracepath example.com, which many distributions include. Linux versions also accept -6 in place of the separate traceroute6 command.
Why different tools give different answers
The probes are not identical. Windows tracert sends ICMP echo requests. Traditional Unix traceroute sends UDP datagrams to high-numbered ports. Linux can also send TCP probes:
sudo traceroute -T -p 443 example.com Firewalls treat these differently. A trace that dies halfway with UDP may complete with ICMP or with TCP to port 443, because the destination permits the traffic it actually serves. If one method stops, try another before drawing conclusions.
Reading the output
A typical result looks like this, using documentation addresses and made-up times:
1 2 ms 1 ms 2 ms 192.168.1.1
2 11 ms 10 ms 12 ms 198.51.100.1
3 * * * Request timed out.
4 19 ms 18 ms 19 ms 198.51.100.77
5 92 ms 21 ms 20 ms 203.0.113.14
6 22 ms 21 ms 23 ms 203.0.113.80 Hop 1 is almost always your own router, the default gateway. The next hop or two belong to your internet provider. After that come transit or peering networks and finally the destination's network.
Private or shared addresses such as 10.x.x.x or 100.64.x.x after your router are normal inside a provider's network, and the second range often hints at carrier-grade NAT.
Router names sometimes contain city or interface codes. They're helpful clues, but nothing forces an operator to keep them accurate.
Four traps
Asterisks in the middle. In the example, hop 3 never answers, yet later hops do. Traffic clearly passed through. That router simply doesn't send expiry messages, or is limiting them.
A spike that doesn't persist. Hop 5 shows one 92 ms sample while hop 6 is back at 22 ms. Routers give low priority to generating replies compared with forwarding. Only delay that starts at one hop and continues through all later hops, including the destination, affects your traffic.
A sudden large but steady jump. A step from 20 ms to 95 ms that stays high often reflects a long physical link, such as an ocean crossing. Distance costs time no matter how fast the link is.
Odd or alternating addresses. Providers often balance load across parallel paths, so different probes take different routers. The result can show two addresses on one hop or an apparent jump that no single packet ever makes.
Also keep in mind that the return path is invisible. A delay shown at hop 6 might arise on the way back from hop 6. Where possible, ask someone at the far end to trace toward you.
Signs of a real problem
- The same two addresses repeating until the hop limit indicates a routing loop.
- Nothing beyond your router suggests the internet connection or the provider's first hop.
- Loss and high delay from one point onward, confirmed over many samples, suggests congestion or a failing link around there.
- A trace that ends with "destination unreachable" means a router is telling you it has no route or is refusing the traffic.
- A wildly indirect path may reflect routing policy, or occasionally a routing leak.
A trace that ends in timeouts at the last hop isn't automatically broken. Many servers ignore probes while serving web traffic perfectly well.
A worked diagnosis
Say video calls stutter every evening. You trace to the service and see this pattern, with illustrative numbers: hop 1 answers in 2 ms, hop 2 in about 12 ms, and from hop 3 onward every line, including the destination, sits near 180 ms with the occasional asterisk. In the morning the same trace shows about 25 ms from hop 3 to the end.
That comparison says a lot. Your home network (hop 1) is fine in both. The delay begins between hop 2 and hop 3, persists to the destination and appears only at busy times, which points toward congestion on that segment, likely within your provider's network or at its edge.
Before reporting it, rule out your own side. Repeat the test on a wired connection, and check that nothing in the house is uploading heavily. A saturated home upload queue raises the delay at hop 2 and everything after it, which looks superficially similar. That effect is bufferbloat.
Now imagine a different result: only hop 3 shows 180 ms, while hop 4 onward stay near 25 ms. That router is merely slow to answer probes. There is nothing to report.
IPv4 and IPv6 can differ
Many connections have both protocols, and they may follow quite different paths through different peering arrangements. A website that feels slow may be slow over only one of them.
Run both traces and compare:
tracert -4 example.com
tracert -6 example.com On Linux and macOS, use traceroute for IPv4 and traceroute6 for IPv6. If IPv6 stops early while IPv4 completes, your provider or router may have a partial IPv6 setup. Applications usually fall back, but the fallback can add a pause at the start of each connection. Include both results when you report the fault.
Tracing responsibly
Traceroute is a small, ordinary diagnostic, and running it toward public services you use is normal practice. Keep it proportionate. Continuous high-rate probing of someone else's equipment adds load and may be filtered or treated as hostile. For mapping or monitoring a network in detail, stick to systems you own or are authorized to test.
Operators also have reasons to hide some detail. Blocking or limiting expiry messages is a legitimate choice, so an incomplete trace isn't evidence of anything being concealed from you in particular. Web-based looking glass tools offered by many networks let you run a trace from their side toward your address, which is the practical way to see the return direction without asking anyone to run commands for you.
Getting better evidence
Three probes per hop are a small sample. For intermittent faults, use tools that repeat continuously. On Windows, pathping example.com traces the route and then measures loss over a period. On Linux and macOS, mtr gives a live view; our guide to mtr explains it. A report you can paste looks like:
mtr --report --report-cycles 100 example.com Pair this with plain ping tests to your router and to the destination. If pings to your own router already drop, look at Wi-Fi or cabling first, not the internet.
Reporting a problem to your provider
Support teams can act on a clear report. Include:
- The destination name and the address it resolved to.
- The date, time and time zone.
- A trace from when the problem is happening, ideally in both IPv4 and IPv6 if both exist.
- A trace from a normal period, if you saved one.
- How the fault shows up: which applications, how often, and whether a wired connection behaves the same.
Remove anything you'd rather not share. The first lines can reveal details of your internal network, and public hop addresses can hint at your location.
Common questions
Can traceroute show where a website is physically hosted?
Not reliably. The last hops may belong to a content delivery network node near you, and location guesses based on addresses or names can be wrong.
Does a long list of hops mean a slow connection?
No. Fifteen short hops can be faster than five long ones. Total round-trip time and loss at the destination are what you feel.