Home/Traceroute Guide

Traceroute guide & command generator

Browsers can't send raw network packets, so a true traceroute must run from your terminal. Generate the exact command for your system below, then learn how to read the output.

Windows
tracert example.com
macOS / Linux
traceroute example.com

 

What traceroute does

Traceroute maps the path your packets take across the internet to reach a destination, listing every router (hop) in between along with the round-trip time to each. It's the first tool to reach for when a site is slow or unreachable, because it shows where the trouble starts.

How it works

It sends packets with a deliberately small Time To Live (TTL), starting at 1. Each router decrements the TTL; when it hits zero, the router replies with a "time exceeded" message that reveals its address. By increasing the TTL one step at a time, traceroute discovers each hop in order.

Reading the output

  • Each numbered line is one hop, usually showing three timing samples in milliseconds.
  • Rising latency is normal as distance grows. A sudden, sustained jump points to the congested or distant link.
  • Asterisks (* * *) mean a router didn't reply — often harmless (some devices deprioritise these packets), but persistent stars to the end can indicate a block or outage.
  • The final line should be your destination. If it never arrives, the problem is at the last responding hop or beyond.

Handy variations

  • tracert -d example.com (Windows) — skip DNS lookups for faster results.
  • traceroute -I example.com (Linux) — use ICMP like Windows does.
  • traceroute -T -p 443 example.com — trace using TCP to port 443 when firewalls block UDP/ICMP.
  • mtr example.com — a live, continuously updating traceroute (install on Linux/macOS).

Frequently Asked Questions

Why can't this website run traceroute for me?

Traceroute needs low-level access to craft packets with custom TTLs and read ICMP replies. Browsers sandbox JavaScript away from that for security, so the trace must run from your own terminal.

Traceroute shows stars at the end — is something broken?

Not necessarily. Many servers and firewalls silently drop the probe packets while still serving normal traffic. If the website actually loads, intermittent stars are usually cosmetic.

What's the difference between traceroute and ping?

Ping tests whether a host is reachable and how long the round trip takes. Traceroute shows the full path and the latency to every hop along the way, so you can pinpoint where delay or loss begins.