Tracert

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

You can use Tracert.exe to send ICMPv6 or ICMP Echo Request messages to produce command-line report information about each router that is crossed and the roundtrip time (RTT) for each hop. By default, tracert queries for both IPv4 and IPv6 addresses, and uses the addresses that the operating system (OS) returns. You can override this behavior by using the –4 and –6 options.

Syntax

tracert [-p] [-d] [-h maximum_hops] [-j host-list] [-w timeout] [-r] [-s srcaddr] [-4] [-6] target_name

Parameters

  • -p
    Redirects the output to the debug output port.
  • -d
    Specifies not to resolve addresses to hostnames.
  • -h maximum_hops
    Specifies the maximum number of hops to search for target.
  • -j host-list
    Specifies loose source route along the host-list (IPv4 only).
  • -w timeout
    Specifies the wait timeout milliseconds for each reply.
  • -r
    Specifies to trace the round-trip path (IPv6 only).
  • -s srcaddr
    Specifies the IPv6 source address of this computer (IPv6 only).
  • -4
    Specifies to trace the path taken by IPv4 packets from this computer to a remote computer.
  • -6
    Specifies to trace the path taken by IPv6 packets from this computer to a remote computer.
  • target_name
    Specifies the target name of the remote computer.

Remarks

If tracert is unsuccessful, you can use the command-line report information to determine the intermediate router in which forwarding either failed or was slowed.

See Also

Other Resources

Network Utilities Application Development