How to Perform a Computer Ping Test (And When You Need To)

Diagnose potential network problems with this useful tool

screenshot of a Command Prompt

Bradley Mitchell

A ping is a method for sending messages from one computer to another as part of troubleshooting Internet Protocol network connections. A ping test determines whether your client (computer, phone, or similar device) can communicate with another device across a network.

In cases where network communication is successfully established, ping tests can also determine the connection latency (delay) between the two devices.

Ping tests are not the same as internet speed tests that determine how fast your internet connection is against a specific website. Ping is more appropriate to test whether or not a connection can be made, not how fast the connection is.

How Ping Tests Work

Ping uses the Internet Control Message Protocol to generate requests and handle responses.

Starting a ping test sends ICMP messages from the local device to the remote one. The receiving device recognizes the incoming messages as an ICMP ping request and replies accordingly.

The elapsed time between sending the request and receiving the reply on the local device constitutes the ping time.

How to Ping Networked Devices

In the Windows operating system, the ping command is used for running ping tests. It's built-in to the system and is executed through Command Prompt.

You must already know the IP address or hostname of the to-be-pinged device. However, typically, an IP address is used to avoid issues with DNS because if DNS doesn't find the right IP address from the hostname, the problem might rest with the DNS server and not necessarily with the device.

The Windows command for running a ping test against a router with the IP address looks like this:


The same syntax is used to ping a website:


See the ping command syntax to learn how to customize the ping command in Windows, like to adjust the timeout period, Time To Live value, buffer size, etc.

How to Read a Ping Test

Pinging might produce results like this:

Pinging [] with 32 bytes of data:
Reply from bytes=32 time=20ms TTL=56
Reply from bytes=32 time=24ms TTL=56
Reply from bytes=32 time=21ms TTL=56
Reply from bytes=32 time=20ms TTL=56
Ping statistics for
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 20ms, Maximum = 24ms, Average = 21ms

The IP address shown above belongs to Lifewire, which is what the ping command tested. The 32 bytes is the buffer size, and it's followed by the response time.

The result of a ping test varies depending on the quality of the connection. A good broadband internet connection typically results in ping test latency of less than 100 ms, and often less than 30 ms. A satellite internet connection normally suffers from latency above 500 ms.

Limitations of Ping Testing

Ping accurately measures connections between two devices at the time a test is run. Network conditions can change at a moment's notice, however, quickly making old test results irrelevant.

Additionally, internet ping test results vary greatly depending on the target server that's chosen. Ping statistics can be good for Google and but terrible for Netflix.

To get maximum value from ping testing, choose ping tools that are easy to use and point them at the right servers and services for what you are troubleshooting.