How to Test Network Connection with Ping
Test basic network connectivity, latency, and packet loss with the ping command.
Before you start
Step-by-step instructions
1. Open Command Prompt or Terminal
Open the command line on your operating system before running the test.
On Windows, use Command Prompt. On Linux or macOS, use Terminal.
2. Run the ping command
Run ping with the domain name or IP address you want to test.
ping google.com
ping 8.8.8.8
Testing a domain checks name resolution and connectivity, while testing an IP checks raw network reachability without DNS.
3. Review the response time and packet loss
Look at the returned time values and whether packets were lost during the test.
Low response time usually means a healthy connection, while packet loss may indicate a network path problem or instability.
4. Compare results with another target if needed
If one host fails, try pinging your router, a public DNS IP, and another website to narrow down where the issue is happening.
Start with your local gateway, then a public IP, then a domain name. This helps separate local, internet, and DNS problems.
Common issues
This can mean the host is unreachable, the network path is broken, or the destination is blocking ping requests.
This usually points to a DNS issue rather than a general internet connectivity issue.
This may indicate network congestion, unstable Wi-Fi, poor routing, or an ISP-related problem.
Final check
Ping is a quick first step for diagnosing connection problems. It helps you confirm whether the issue is basic reachability, DNS resolution, or a larger network path problem.