How to Run the ping Commands

This document describes how to run the ping utilities on different operating systems. The ping command allows you to test the latency between your local machine and the target IP address.

On a MacOS or Linux server:

To run the ping utility on a MacOS or Linux server, perform the following steps:

Step 1: Log in to the server via SSH.
Note:Some servers may restrict the traceroute command. If so, SSH to the server with a privileged user, such as the root user.

Step 2: Run the ping example.com command, where example.com represents the target host to test. Successful output will resemble the following example:

PING example.com (192.168.0.20): 56 data bytes
64 bytes from 192.168.0.20: icmp_seq=0 ttl=45 time=22.122 ms
64 bytes from 192.168.0.20: icmp_seq=1 ttl=45 time=21.327 ms
64 bytes from 192.168.0.20: icmp_seq=2 ttl=45 time=24.583 ms

On a Microsoft Windows platform:

To run the ping utility on a Microsoft Windows platform, perform the following steps:

Step 1: From the Windows Start menu, enter “cmd” in the Search text box.

Step 2: Run the ping example.com command, where example.com represents the target host to test. Successful output will resemble the following example:

PING example.com (192.168.0.20) with 56 bytes of data:
Reply from 192.168.0.20: bytes=64 ttl=45 time=22.921 ms
Reply from 192.168.0.20: bytes=64 ttl=45 time=22.921 ms
Reply from 192.168.0.20: bytes=64 ttl=45 time=22.921 ms