How to Perform Ping Checks in Windows, Linux, and macOS
This article explains how to perform ping tests in Windows, Linux, and macOS to verify network connectivity, domain resolution, and server reachability.
Applies To
Windows 10 and Windows 11
Windows Server
Linux distributions
macOS
Network and DNS troubleshooting
Symptoms
Website is not accessible.
Network connectivity issues are suspected.
DNS resolution needs to be verified.
Server availability needs to be tested.
Resolution
Follow the steps below based on your operating system.
Perform a Ping Check in Windows
Open Command Prompt:
Press Windows + R.
Type cmd.
Click OK.
Run the following command:
ping example.com
Or ping a specific IP address:
ping 192.168.1.1
Review the results:
Pinging example.com [93.184.216.34] with 32 bytes of data:
Reply from 93.184.216.34: bytes=32 time=20ms TTL=58
Perform a Ping Check in Linux
Open the Terminal.
Run:
ping example.com
Or:
ping 192.168.1.1
Linux continues pinging until stopped.
Press:
Ctrl + C
to end the test.
Perform a Ping Check in macOS
Open Terminal:
Applications → Utilities → Terminal
Run:
ping example.com
Or:
ping 192.168.1.1
The ping will continue until stopped.
Press:
Ctrl + C
to stop the test and view statistics.
Understanding the Results
Successful Response
Reply from 93.184.216.34: bytes=32 time=20ms TTL=58
bytes: Packet size
time: Response time (latency)
TTL: Time To Live value
Request Timed Out
Request timed out.
This indicates that the target did not respond.
Unknown Host
Ping request could not find host example.com
This usually indicates a DNS resolution issue.
Verification
A successful ping test should show:
Responses from the target host.
Packet loss of 0% (where possible).
Reasonable response times.
Correct DNS resolution of the hostname to an IP address.
Troubleshooting
Issue: Request timed out.
Resolution: Verify that the destination server is online and that firewalls are not blocking ICMP traffic.
Issue: Host name cannot be resolved.
Resolution: Check DNS settings and confirm the domain name is correct.
Issue: 100% packet loss.
