Windows Commands / IT Support Guides
Use ping to separate reachability from application failure
Use ping to check whether a Windows computer receives replies from a known destination.
Environment and inputs: Windows 11 · Command Prompt unless PowerShell is specified
Understand the problem
Choose a device you administer or are allowed to test. Replace the sample address and name with the IP and hostname of the same device.
Run the command
Run both commands from the affected computer. The -n 4 option sends four echo requests per command.
ping -n 4 192.0.2.1
ping -n 4 example.com
Read the output
Read the reply source and the round-trip time. If the hostname command says it could not find the host but the matching IP replies, check name resolution. A timeout alone can also occur when a device or firewall blocks ping.
Choose the next step
If the destination replies but the application still fails, test the application’s actual connection separately. If only the name fails to resolve, confirm the name and check the DNS answer.
Before making changes
Record the time and destination you tested. Ping checks echo replies, so verify application availability using the affected service.