Basics
On Windows, ping is ping.exe: it sends ICMP Echo Request messages to a host (name or IP) and reports round-trip time (RTT) and the TTL value on IPv4 replies when present. By default it sends four probes and stops—unlike many Linux defaults—so scripted checks often need -n or -t explicitly.
Common switches
| Switch | Meaning | Typical use |
|---|---|---|
-t | Ping until stopped (Ctrl+C) | Spotty Wi-Fi, loss patterns, jitter sampling |
-n count | Number of echo requests | Repeatable scripts and short bursts |
-l size | Send buffer size (payload bytes) | MTU/fragmentation experiments (pair with -f) |
-f | Set Don’t Fragment (IPv4) | Find path MTU black holes when large pings fail |
-w timeout_ms | Timeout to wait for each reply | Satellite or high-latency paths |
-a | Resolve addresses to hostnames | Reverse-DNS hints on IP targets |
-4 / -6 | Force IPv4 or IPv6 | Dual-stack ambiguity; literal v6 addresses |
-S srcaddr | Source address to use | Multi-homed hosts; must be local to the machine |
Reading replies and failures
Reply from … time=<ms> TTL=<n> means an ICMP echo reply returned; TTL is decremented by each router hop and starting values differ by OS family, so TTL is a rough fingerprint, not a hop count. Request timed out means no reply before -w (or default timeout)—ICMP may be dropped anywhere on the path while TCP to port 443 still works. Destination host unreachable often indicates a local router or stack could not deliver (subnet, policy, or ICMP error relayed)—read the preceding lines for IPv4 vs IPv6 context.
What ping cannot prove
Many networks rate-limit or block ICMP toward or from the internet edge. Corporate proxies, DNS failures, TLS issues, and application bugs all produce “browser broken, ping OK” scenarios. Use DNS tools, tracert/pathping, and application-layer tests alongside ping.
PowerShell alternative
Test-NetConnection -ComputerName host -InformationLevel Detailed combines ICMP (when permitted) with TCP test options in newer Windows—useful when ping is blocked but you still need path data. It is not a drop-in syntax clone of ping.exe.
Related: Windows tracert, Windows ipconfig, ping vs traceroute vs mtr, PowerShell networking.