Pinging to test network connectivity

Pinging to test network connectivity

Ping is a network administration utility or tool used to test connectivity on an Internet Protocol (IP) network. It also measures the latency or delay between two computers.

To test network connectivity with ping:

Open the Command Prompt or Terminal. Every operating system has a command line interface that will allow you to run the Ping command. The Ping command operates virtually identically on all systems.

  • If using Windows, open the Command Prompt. Click the Start button and enter "cmd" into the Search field. Windows 8 users can type "cmd" while on the Start screen. Press Enter to launch the Command Prompt.
  • If using Mac OS X, open the Terminal. Open your Applications folder, and then open the Utilities folder. Select Terminal.
  • If using Linux, Open a Telnet/Terminal window. It is most often found in the Accessories folder in your Applications directory.

Type ping followed by an IP address or a website address then press Enter key to execute the command. Here is a brief explanation of commonly used ping commands:

  • ping 127.0.0.1 (This is a "loopback ping" - your computer trying to talk to itself. If the loopback step fails, it might be because the TCP drivers are corrupted, the network adapter might not be working, or another service is interfering with IP.)
  • ping (This will ping the IP address of a device like a local computer, remote server or any client that receives an IP address to verify that it is reachable and that you can communicate with it properly.) Example: ping 192.168.1.1 (this is the default IP address of NETGEAR routers)
  • ping (This command will test for the Internet connectivity and DNS functionality.) Example: ping www.netgear.com, ping google.com

Here is a screenshot of a successful ping test:


The first arrow shows the computer we are trying to reach is responding. The DNS address "www.netgear.com" is displayed into the equivalent 54.187.xx.yy IP address. This also shows that the computer is online and it has Internet access.


The second arrow shows that all of the sent packets are received showing that there is 0% loss. This means that the connection is available and stable.

The third arrow shows the average time it took to answer. "Average = 173ms".  In this example, the website server is several time zones away. A ping reply for a PC/ Server on the same local network should be 1-10 milliseconds.

Unsuccessful ping replies:

Request timed out

This message indicates that no Reply messages were received within the default time of 1 second. This can be due to many different causes; the most common include network congestion, failure of the ARP request, packet filtering, routing error, or a silent discard. Most often, it means that a route back to the sending host has failed. This might be because the destination host does not know the route back to the sending host, or one of the intermediary routers does not know the route back, or even that the destination host's default gateway does not know the route back. Check the routing table of the destination host to see whether it has a route to the sending host before checking tables at the routers.

Unknown host

This error message indicates that the requested host name cannot be resolved to its IP address; check that the name is entered correctly and that the DNS servers can resolve it.

Destination host unreachable

This message indicates one of two problems: either the local system has no route to the desired destination, or a remote router reports that it has no route to the destination. The two problems can be distinguished by the form of the message. If the message is simply "Destination Host Unreachable," then there is no route from the local system, and the packets to be sent were never put on the wire. Use the Route utility to check the local routing table.

If the message is "Reply From : Destination Host Unreachable," then the routing problem occurred at a remote router, whose address is indicated by the " field. Use the appropriate utility or facility to check the IP routing table of the router assigned the IP address of .

If you pinged using an IP address, retry it with a host name to ensure that the IP address you tried is correct.