Overview
The article explains how to run a ping command to diagnose connection issues.
Background
Ping is a useful tool for checking whether your domain/website is reachable from your location. Some support requests require that you collect ping results and submit them along with your ticket.
How to run a ping command
You can run a ping command and collect its results in either Windows or macOS/Linux.
Windows
- Open the command prompt.
- Enter the ping command followed by your domain name.
- Click the Enter key.
- The command and results appear in the following:
[server]$ ping dreamhost.com Pinging dreamhost.com [192.237.181.248] with 32 bytes of data: Reply from 192.237.181.248: bytes=32 time=59ms TTL=49 Reply from 192.237.181.248: bytes=32 time=59ms TTL=49 Reply from 192.237.181.248: bytes=32 time=59ms TTL=49 Reply from 192.237.181.248: bytes=32 time=59ms TTL=49 Ping statistics for 192.237.181.248: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milliseconds: Minimum = 59ms, Maximum = 59ms, Average = 59ms
About Pathping
Windows also has a command you can run called pathping. This tool is useful as it basically combines traceroute and ping together. Pathping runs the same as ping syntax: simply run pathping instead of just ping.
Pathping takes much longer to complete than running these two commands separately.
Ping and traceroute are helpful tools for determining the cause of connection problems. If these tools fail, comparing results between your site and a reliable site (such as Google) can be extremely valuable in determining whether the problem is your computer, your ISP, or your site.
macOS and Linux
The procedure is slightly different in macOS and Linux environments: namely, these operating systems continue to ping until you tell it to stop.
To ping only ten times, review the macOS SSH article to open your terminal and then run the following command:
-
[server]$ ping -c 10 example.com