tracert
(short for trace route) is a command-line utility that helps you diagnose network connectivity issues by showing the path that packets take to reach a destination host.
It works by sending ICMP Echo Request packets with increasing Time-To-Live (TTL) values, then reporting the IP address of each router (hop) along the path.
Syntax
Example:
What It Shows
Each line in the output represents a hop. For each hop, it shows:
-
Hop number
-
Round-trip times for 3 attempts (in milliseconds)
-
Hostname and/or IP address of the router
Sample Output
Options and Parameters
Option | Description |
---|---|
-d | Skip DNS resolution — faster output, IP addresses only. |
-h <maxhops> | Set maximum number of hops (default is 30). |
-w <timeout> | Set timeout (in milliseconds) to wait for each reply (default is 4000 ms). |
-4 | Use IPv4 only. |
-6 | Use IPv6 only. |