MS-DOS and Windows command line pathping command

Updated: 12/30/2021 by Computer Hope
pathping command

Similar to the tracert command, pathping allows users to locate spots that have network latency and network loss.

Availability

Pathping is an external command available for the following Microsoft operating systems as pathping.exe.

Pathping syntax

Windows 10 and Windows 11 syntax

Usage:

pathping [-g host-list] [-h maximum_hops] [-i address] [-n] [-p period] [-q num_queries] [-w timeout] [-4] [-6] target_name

Options:

-g host-list Loose source route along host-list.
-h maximum_hops Maximum number of hops to search for a target.
-i address Use the specified source address.
-n Do not resolve addresses to hostnames.
-p period Wait period milliseconds between pings.
-q num_queries Number of queries per hop.
-w timeout Wait timeout milliseconds for each reply.
-4 Force using IPv4.
-6 Force using IPv6.

Windows XP, Windows Vista, Windows 7, and Windows 8 syntax

Usage:

pathping [-g host-list] [-h maximum_hops] [-i address] [-n] [-p period] [-q num_queries] [-w timeout] [-P] [-R] [-T] [-4] [-6] target_name

Options:

-g host-list Loose source route along host-list.
-h maximum_hops Maximum number of hops to search for a target.
-i address Use the specified source address.
-n Do not resolve addresses to hostnames.
-p period Wait period milliseconds between pings.
-q num_queries Number of queries per hop.
-w timeout Wait timeout milliseconds for each reply.
-P Test for RSVP PATH connectivity.
-R Test if each hop is RSVP-aware.
-T Test connectivity to each hop with Layer-2 priority tags.
-4 Force using IPv4.
-6 Force using IPv6.

Windows 2000 syntax

Usage:

pathping [-n] [-h maximum_hops] [-g host-list] [-p period] [-q num_queries] [-w timeout] [-t] [-R] [-r] target_name

Options:

-n Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for a target.
-g host-list Loose source route along host-list.
-p period Wait period in milliseconds between pings.
-q num_queries Number of queries per hop.
-w timeout Wait timeout in milliseconds for each reply.
-T Test connectivity to each hop with Layer-2 priority tags.
-R Test if each hop is RSVP-aware.

Pathping examples

pathping computerhope.com
Tracing route to computerhope.com [2400:cb00:2048:1::6814:3876]
over a maximum of 30 hops:
  0  Hope-PC.hsd1.ut.comcast.net [2601:681:8380:1830:b5b4:6583:4660:1898]
  1  2601:681:8380:1830:2e95:69ff:fe9b:3739
  2  2001:558:4072:9::1
  3  po-104-rur01.sandy.ut.utah.comcast.net [2001:558:102:2060::1]
  4  2001:558:fe0b:a::a
  5  2400:cb00:2048:1::6814:3876
Computing statistics for 125 seconds...
            Source to Here   This Node/Link
Hop  RTT    Lost/Sent = Pct  Lost/Sent = Pct  Address
  0                                           Hope-PC [192.168.120.101]
                                0/ 100 =  0%   |
  1    1ms     0/ 100 =  0%     0/ 100 =  0%  2601:681:8380:1830:2e95:69ff:fe9b:3739
                                0/ 100 =  0%   |
  2  ---     100/ 100 =100%   100/ 100 =100%  2001:558:4072:9::1
                                0/ 100 =  0%   |
  3    7ms     0/ 100 =  0%     0/ 100 =  0%  sandy.ut.utah.comcast.net
                                0/ 100 =  0%   |
  4    8ms     0/ 100 =  0%     0/ 100 =  0%  2001:558:fe0b:a::a
                                0/ 100 =  0%   |
  5    8ms     0/ 100 =  0%     0/ 100 =  0%  2400:cb00:2048:1::6814:3876
Trace complete.

In the pathping example output above, there are a total of five hops that take a total of 8ms. Each of the addresses listed are the computers or routers on each of the hops.