Skip to main content
Home/Blog/Automation/tracert Command: Trace Network Routes on Windows (2026)
Automation

tracert Command: Trace Network Routes on Windows (2026)

Trace the network route to any host with the Windows tracert command. Read hop output, decode request-timed-out asterisks, and learn tracert vs ping vs pathping for diagnosing latency and packet loss.

By InventiveHQ Team
tracert Command: Trace Network Routes on Windows (2026)

Need to find exactly where a network connection slows down or breaks? tracert maps every router between your Windows machine and a destination, so you can pinpoint the hop adding latency or dropping packets instead of guessing.

Traceroute Command Builder

Build tracert, pathping, traceroute, and mtr commands to trace the network path to any host — choose the tool, target, hop limit, timeout, and protocol.

Open the full Traceroute Command Builder
Loading interactive tool...

Verified June 2026 · tested on Windows 11 24H2, Windows 10 22H2 & Server 2022/2025


Quick Reference: Essential Commands

Need to trace a route right now? Here are the most common commands:

# Trace the route to a host (default behaviour)
tracert google.com

# Trace by IP and skip slow reverse-DNS lookups (much faster)
tracert -d 8.8.8.8

# Cap the trace at 15 hops
tracert -h 15 example.com

# Shorten the per-hop wait to 1 second (1000 ms)
tracert -w 1000 example.com

# Force IPv4 or IPv6
tracert -4 example.com
tracert -6 example.com

# Measure packet loss per hop over time (pathping)
pathping -q 50 google.com

Which command do you need?

Jump to the section you need below.


tracert: Trace the Route

tracert.exe (trace route) discovers the path packets take to a destination by sending probes with an increasing Time To Live (TTL) value. The first probe has TTL 1, so the first router decrements it to 0 and replies with an "ICMP Time Exceeded" message — revealing itself. The second probe uses TTL 2 to reveal the second router, and so on until the packets reach the destination. Each row of output is therefore one router (a hop) on the way.

Windows 10Windows 11Server 2016+Built in — no moduleNo elevation needed

tracert Switch Reference

SwitchDescription
-dDo not resolve hop IP addresses to host names — much faster output
-h {max_hops}Maximum number of hops to probe (default 30)
-w {timeout_ms}Milliseconds to wait for each reply (default 4000)
-4Force IPv4
-6Force IPv6
-j {host-list}Loose source route along a list of hosts (IPv4 only)
-RTrace the round-trip path (IPv6 only)
-S {srcaddr}Source address to use (IPv6 only)
/?Show built-in help

tracert Usage Examples

# Standard trace by host name
tracert google.com

# Skip name resolution and trace by IP (fastest, cleanest output)
tracert -d 8.8.8.8

# Limit the trace to 15 hops so it gives up sooner on a dead route
tracert -h 15 example.com

# Drop the per-hop timeout to 1 second instead of 4
tracert -w 1000 example.com

# Combine flags: no DNS, 20-hop cap, 2-second timeout
tracert -d -h 20 -w 2000 cloudflare.com

# Force the IPv6 path to a dual-stack host
tracert -6 ipv6.google.com

Tip: Always reach for -d first when a trace is crawling. Each hop that tracert can't reverse-resolve otherwise stalls the line until DNS times out, which makes a healthy trace look slow even when the network is fine.

How to Read tracert Output

A typical trace looks like this:

Tracing route to google.com [142.250.80.46]
over a maximum of 30 hops:

  1     1 ms     1 ms     1 ms  192.168.1.1
  2    11 ms     9 ms    10 ms  100.64.0.1
  3    12 ms    11 ms    12 ms  cr1.dllstx.example.net [203.0.113.9]
  4     *        *        *     Request timed out.
  5    24 ms    23 ms    24 ms  142.250.80.46

Trace complete.

Read it column by column:

  • Hop number — the position of the router on the path (1 is your own gateway).
  • Three time columns — tracert sends three probes per hop by default and prints each round-trip time in milliseconds. Three readings help you spot a single fluke versus consistent latency.
  • Host / IP — the responding router, resolved to a name unless you used -d.

What to look for:

  • A steady climb in latency as you move outward is normal — packets travel farther.
  • A sudden jump that persists at one hop and every hop after it points to that router (or the link feeding it) as the source of the latency.
  • A jump at one hop that disappears at the next is not a problem — it just means that one router de-prioritised your probe.

What the Asterisk (Request Timed Out) Means

An * means tracert got no reply for that probe before the -w timeout. This is the single most misread part of trace output. It almost always means the router is configured to drop or rate-limit the ICMP "Time Exceeded" replies that tracert depends on — not that your traffic is failing.

  • Asterisks at one middle hop, with later hops responding → harmless. The path works; that router simply stays quiet.
  • Asterisks from one hop all the way to the destination → a real break or a firewall at the far end. The last hop that did respond is where to focus.
  • Asterisks only at the final destination → very common. Many web servers (Google, Cloudflare, and most hardened edge firewalls) deliberately ignore trace probes even though the site loads fine in a browser. The site is up; it just won't answer tracert.

ping vs tracert vs pathping

All three tools use ICMP-style probes, but they answer different questions. Choosing the right one saves time.

ToolQuestion it answersHow it worksBest for
pingIs this one host reachable, and how fast?Sends ICMP Echo to a single destinationQuick up/down + latency check
tracertWhich routers are on the path, and where does it slow down?Increasing-TTL probes, 3 per hop, one passLocating where a problem is
pathpingHow much packet loss happens at each hop over time?Traces the path, then floods every hop with packetsProving intermittent loss at a specific router

A practical workflow:

# 1. Confirm the destination is reachable at all
ping google.com

# 2. If ping fails or is slow, find WHERE on the path
tracert -d google.com

# 3. If a hop looks suspect, measure its real packet loss
pathping -d google.com

Use ping to confirm a symptom, tracert to localise it, and pathping to quantify it. tracert tells you a hop looks bad; pathping proves whether that hop is actually losing packets.


pathping: Measure Packet Loss Per Hop

pathping.exe is the heavyweight. It first runs a trace to discover the route, then sends a burst of packets to every hop and reports the percentage lost at each one. Because it samples each hop for about 25 seconds, a full run can take several minutes — but the per-hop loss statistics are exactly what you need to catch an intermittent, lossy router.

Windows 10Windows 11Server 2016+Built in — no moduleSlow — minutes per run

pathping Switch Reference

SwitchDescription
-nDo not resolve addresses to host names (the pathping equivalent of tracert -d)
-h {max_hops}Maximum number of hops to search (default 30)
-q {num_queries}Number of queries sent to each hop (default 100)
-w {timeout_ms}Milliseconds to wait per reply
-p {period_ms}Milliseconds to wait between pings
-4 / -6Force IPv4 or IPv6

pathping Usage Examples

# Full run with name resolution
pathping google.com

# Skip DNS and send 50 queries per hop (faster than the default 100)
pathping -n -q 50 google.com

# Cap at 20 hops and force IPv4
pathping -h 20 -4 example.com

In the results table, the Lost/Sent = Pct column is the payoff: a hop showing sustained loss (and loss that continues at every hop after it) is the one degrading your connection. Loss at a single hop that clears on the next line is just that router rate-limiting the probes, not real packet loss.


macOS and Linux: traceroute and mtr

The same diagnostics exist outside Windows, with two naming and behaviour differences worth knowing.

  • Command name: it is traceroute (full word) on macOS and Linux, not tracert.
  • Default protocol: Windows tracert uses ICMP probes; Unix traceroute defaults to UDP. Add -I to make traceroute use ICMP like Windows, or -T for TCP probes (useful when firewalls block UDP/ICMP).
# macOS — traceroute is built in
traceroute google.com

# Use ICMP probes (closest match to Windows tracert)
traceroute -I google.com

# Skip reverse-DNS (the -d/-n equivalent)
traceroute -n 8.8.8.8

# Force IPv4 or IPv6
traceroute -4 example.com
traceroute -6 example.com

On Linux, traceroute may need installing first:

# Debian / Ubuntu
sudo apt install traceroute

# RHEL / Fedora / Rocky
sudo dnf install traceroute

mtr: a live traceroute + ping

mtr ("My TraceRoute") merges traceroute and ping into one continuously updating display, refreshing each hop's loss and latency in real time — ideal for watching an intermittent problem as it happens.

# Install (Debian/Ubuntu)
sudo apt install mtr

# Live report
mtr google.com

# Text snapshot of 100 cycles then exit (great for tickets/logs)
mtr --report --report-cycles 100 google.com

On Windows, the closest equivalent to mtr is the open-source WinMTR or running pathping for its per-hop loss statistics.


Trace Output: What Each Result Means

Each row is deep-linkable — share a specific symptom with …#tr-timeout, and the row highlights on arrival.

Symptom / OutputMeaningWhat to do
* * * Request timed out at a middle hopThat router drops or rate-limits ICMP TTL-expired repliesUsually harmless — if later hops respond, the path is fine. Ignore it.
Asterisks from one hop to the destinationReal break, or a firewall at the far end silently dropping probesFocus on the last hop that replied; confirm reachability with ping or a browser
All hops respond but the final destination times outDestination server/edge firewall ignores trace probes by designNormal for Google/Cloudflare/hardened hosts — the site still works
Latency jumps and stays high from one hop onwardThat router or the link feeding it is the bottleneckNote the hop's owner (often an ISP) and run pathping to confirm loss
One hop is slow but the next hop is fast againThat router de-prioritised your probe (control-plane rate limit)Not a problem — judge a hop by the hops after it, not the hop itself
Trace crawls line by line with names appearing slowlyReverse-DNS lookups are stalling on each hopRe-run with tracert -d to skip name resolution
Trace complete never appears; stops at hop 30Path is longer than the default 30-hop limit, or never completesRaise the cap with tracert -h 60; if it still won't finish, the route is broken
Destination host unreachable on the first hopNo route off the local network — gateway or local link problemCheck the default gateway with ipconfig; confirm the NIC has a valid IP

Version-Specific and Compatibility Notes

  • Windows 11 / 10 / Server: tracert, ping, and pathping are identical across all modern versions and ship in the box — no feature install or module needed. None of them require an elevated prompt.
  • ICMP vs UDP: Windows tracert and pathping use ICMP echo/TTL probes. Unix traceroute defaults to UDP — add -I (ICMP) or -T (TCP) to match Windows behaviour or to get past firewalls that block UDP.
  • IPv4 vs IPv6: Use -4 or -6 to pin the protocol on a dual-stack host. Some switches are protocol-specific: -j (loose source routing) is IPv4-only, while -R and -S apply to IPv6 only.
  • Why traces "fail" on healthy sites: A timed-out final hop is the norm for hardened servers that drop trace probes by policy. Always confirm with ping or a browser before concluding a destination is down.
  • macOS / Linux: the tool is traceroute (not tracert); install it with apt/dnf if missing. For a live, continuously updating view, use mtr (Unix) or WinMTR (Windows).

Frequently Asked Questions

Find answers to common questions

tracert (trace route) maps the path packets take from your Windows machine to a destination host, listing every router (hop) along the way with the round-trip time at each one. It is the go-to tool for finding where latency or a connection break occurs between you and a remote server. Run it as 'tracert google.com' or 'tracert 8.8.8.8' from any Command Prompt or PowerShell — no elevation required.

An asterisk means that probe did not get a reply before the timeout (the default is 4 seconds), so tracert prints 'Request timed out' or a '*' in place of the round-trip time. It usually means that hop's router is configured to drop or rate-limit ICMP/TTL-expired packets, not that traffic is failing. If you see asterisks for one hop but later hops respond normally, the path is fine. Only asterisks all the way to the destination indicate a real break.

ping tests whether a single destination is reachable and how long the round trip takes — one host, one number. tracert shows the entire path of routers between you and that destination, with timing for each hop, so you can see WHERE a problem is, not just that one exists. Use ping to confirm a host is up; use tracert to find which hop along the way is adding latency or dropping traffic.

tracert runs each hop a few times and shows you the path quickly. pathping combines tracert and ping: it discovers the route, then sends many packets to every hop over about 25 seconds per hop and reports the percentage of packet loss at each one. Use tracert for a fast 'where does it break' look; use pathping when you need to prove packet loss at a specific router over time.

Add the -d switch ('tracert -d google.com') to skip reverse-DNS lookups on every hop — this is the single biggest speed-up because each unresolved name otherwise stalls the output. You can also lower the per-hop timeout with -w (for example '-w 1000' for one second) and cap the hop count with -h so tracert stops sooner on routes that never complete.

Either the route genuinely breaks at that point, or a firewall along the path (often the destination's own edge firewall) silently drops the TTL-expired and ICMP packets tracert relies on. Many servers, including some Google and Cloudflare endpoints, deliberately don't answer trace probes even though the site works in a browser. tracert also stops once it hits the -h maximum hop count, which defaults to 30 — raise it with '-h 60' for very long paths.

The equivalent is 'traceroute' (note the spelling — full word, no 't' on the end like Windows). On macOS it is built in: 'traceroute google.com'. On Linux install it if needed (for example 'sudo apt install traceroute'). Unlike Windows, traceroute defaults to UDP probes rather than ICMP; add the '-I' flag to use ICMP like tracert does. The 'mtr' tool is a popular live, continuously updating alternative that merges traceroute and ping.

No. tracert, ping, and pathping all run from a standard (non-elevated) Command Prompt or PowerShell session. You only need elevation for commands that change network configuration, not for diagnostic trace and ping tools.

Transform Your IT with Automation

Streamline operations, reduce manual tasks, and improve security with intelligent automation.