Our Blog

Various articles, How To's and Guides.

How to Ping a Domain or IP?

/How to

How_To_ping_a_domain_or_ip

Ever wondered how to Ping a Domain or IP?

First, let's understand what the Ping command is. In shot, the ping command is a network tool used to determine if a hostname, domain or IP address is accessible, and to see what the the Round Trip time of a ping packet from your computer to the destination and back is.

Most people use the ping command to determine if a host or domain or IP is online and responds, this helps with troubleshooting internet or network connections. There are more reasons to use the ping command but they are not for this brief How To.

How to ping from a Windows computer:

When using a Windows Computer you need to open the Command Prompt. This is done by either searching for Command Prompt in your Start Menu, or by opening the Run menu and typing "cmd" then press Enter. A Shortcut is to press the Windows+R keys to open the Run block, then type "cmd" without the "" into the search field and click OK.

A black Window with white text will open. At the prompt, type the following as an example:

ping google.com

Then press Enter.

The ping command will then produce some output which shows;

  • the domain and associated IP being pinged
  • four lines showing the reply received (or not received) with the bytes, time and TTL
  • the ping statistics for the above.

If you know the IP address you want to ping simply type the IP in pleace of the domain and press Enter.

Note: On Windows, the ping command does 4 pings by default and stops.

How to ping from a Linux computer:

When using a Linux based Computer you might find that the process to open a Terminal or Shell prompt differs slightly in each Linux Distribution. In most cases you can access the Terminal by searching for "terminal" and the clicking to open it. If you're using Linux without a Desktop Graphical Interface, you are already in the Shel or Terminal.

At the prompt, type the following as an example:

ping google.com

Then press Enter.

The ping command will then produce some output which shows;

  • the domain and associated IP being pinged
  • various lines showing the reply received (or not received) with the bytes, time and TTL.

If you know the IP address you want to ping simply type the IP in pleace of the domain and press Enter.

Note: On Linux, the ping command does not stop after a limited number of pings, it will continue indefinately or until you press the Ctrl + C keys to stop.

Next Post