How To Ping?

Ping is a term, action, or tool in order to check the network connectivity to the remote hosts or websites. Ping command is the implementation of the ping action where network packets are sent to the remote host and responses are expected. Ping command is used with the IP networks whereas ICMP protocol is used for ping tests. But there are also different implementations and use cases like opening a TCP connection to the remote host specified port number. In this tutorial, we examine how to ping a remote system.

Ping Using Windows

All Windows operating systems provide the ping command to make network connectivity checks. The Windows ping command sends 4 ICMP packets to the destination and prints the responses if received. The syntax of the Windows ping command is as below.

ping OPTION DESTINATION
  • OPTION is used to provide different options like continuous ping.
  • DESTINATION is a destination hostname or IP address. The hostname is resolved into IP address to send ping packets.

In the following example, we ping the hostname “wisetut.com”.

> ping wisetut.com

We can also provide the IP address of the destination to ping.

> ping 192.168.1.1

Ping Using Linux

Linux ping command is very similar to the Windows ping command where the only difference is the Linux ping command sends packets continuously and does not end automatically. The syntax of the Linux ping command is like below.

ping OPTIONS DESTINATION

In the following example, we ping the hostname with the Linux ping command.

$ ping wisetut.com

Alternatively, we can ping the IP address destination.

$ ping 192.168.1.1 

Ping Using MacOSX

MacOSX operating system also provides the ping command and as a Unix successor, it shares the same options and usage with Linux. Please take the Linux part to get information about the ping command in MacOSX.

Leave a Comment