How to Ping a Website/IP Address in CMD


Open the computer's command prompt. Open the "Start" menu, click on "All Programs," then click on "Accessories" and finally click on "Command Prompt." If you see a black box with a blinking cursor, you have successfully opened the command prompt.


Run the ping command. Type "ping," then a single space and then the name of any website or IP address. It is not necessary to include "http://" at the beginning of the address, but you should include the "www" portion of the address. A good ping command should read as follows:


Check for any typing errors and press the "Enter" key.


Evaluate the ping. If it is unable to ping the server, the output will read "ping request could not find host." If the command pings the server successfully, the output will look like this:

Pinging [12.34.567.890] with 32 bytes of data:

Reply from 12.34.567.890: bytes=32 time=41ms TTL=54
Reply from 12.34.567.890: bytes=32 time=40ms TTL=54
Reply from 12.34.567.890: bytes=32 time=39ms TTL=54
Reply from 12.34.567.890: bytes=32 time=39ms TTL=54

Ping statistics for 12.34.567.890:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 39ms, Maximum = 41ms, Average = 39ms

The key part of the output is the "ping statistics" section at the bottom. A standard Windows ping command sends out four packets of information. The statistics tell you how many of the packets were received by the server or site you are pinging, and the percentage of packet loss the command registered.

Ideally, for a healthy Internet connection, you want to see four packets sent, four packets received, and 0% packet loss. In most cases, this will indicate that your computer's Internet connection is working fine. Any packet loss could be an indication of a connection problem.

  • 219 Users Found This Useful
Was this answer helpful?