How to Ping an IP Address and Read the Result
2 min read
Published · Updated
Short answer
Ping sends a test message and times the reply. Use ping on Windows or ping -c 4 on Mac and Linux, test your router, then a public server, then a website name to find the fault.

In this article (5 sections)
Pinging an IP address sends a small test message to a device and measures how long the reply takes. It tells you whether the device is reachable and how long the round trip takes, in milliseconds. It is the quickest way to test a connection, and it is safe and legal when used on your own network or on public servers in moderation.
How to ping
| System | Command | Notes |
|---|---|---|
| Windows | ping 1.1.1.1 | Sends 4 requests by default. Add -t to keep going until you press Ctrl+C |
| macOS and Linux | ping -c 4 1.1.1.1 | Without -c it runs until you press Ctrl+C |
Open Command Prompt (Windows) or Terminal (Mac and Linux), and replace the address with the device you want to check. You can also use a website name.
How to read the result
| You see | It means |
|---|---|
| Reply from ... time=18ms | The device answered, and the round trip took 18 ms |
| Request timed out | No reply arrived. The device may be off, the network down, or a firewall is blocking pings |
| Destination host unreachable | Your computer or router cannot find a route to it |
| Packet loss above 0% | Some packets were lost. Steady loss means an unstable link |
| Times that vary a lot | High jitter. See what jitter means |
What to ping to find a problem
- Your router (often 192.168.0.1 or 192.168.1.1). If this fails or is slow, the problem is your local network or Wi-Fi.
- A public server such as 1.1.1.1 or 8.8.8.8. If your router works but this fails, the problem is your connection to the internet.
- A website name. If the IP works but the name does not, it is a DNS problem. Try the DNS lookup tool.
Ping times depend on distance. Under 30 ms is excellent, and as a rule of thumb over 100 ms is noticeable in games. See what ping means, and test your line in the browser:
The ping and jitter test does this without a command line.
Is it OK to ping Google DNS? Is it legal?
Yes. Public DNS servers such as 8.8.8.8 and 1.1.1.1 reply to pings and are commonly used for testing. A few pings are harmless. What is not acceptable is flooding a server with pings, which is a denial-of-service attack, or probing other people's networks without permission. This is general information, not legal advice.



