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.
About this guide
This guide explains how to use the ping command to test network connectivity, response time, and whether a host is reachable.
How to follow this guide
- Open Command Prompt or Terminal.
- Run the ping command with a domain or IP address.
- Check packet loss and response time.
- Use the results to identify basic network problems.
Why use this method?
Ping is one of the fastest ways to check whether a server, website, router, or IP address is reachable from your current system.
Frequently Asked Questions
What does ping test?
It checks whether a target host responds over the network and shows response time and packet loss.
What does packet loss mean?
It means some network packets did not reach the destination or did not return successfully.
Can a host block ping?
Yes. Some servers or firewalls block ICMP ping requests even if the service itself is working.
Does ping confirm website service is fully working?
No. It only checks basic reachability and response, not the full application or website status.