How to Ping on a Mac
To ping from a Mac, open Terminal and type ping and a host, for example ping apple.com; it runs until you press Control-C. Netutilus, a free macOS app, runs the same test in a window: classic ICMP, or TCP to port 443, which almost every server answers even when it ignores ICMP. A live chart marks every lost probe, and Continuous mode can run for hours.
Updated
Download on the Mac App Store ↗
free to download · macOS 14.6 or later
Key facts
- Access
- Free
- Shows
- Round-trip time and loss over ICMP or TCP (port 443 by default), up to 10,000 probes or continuous
- Permissions
- Local Network, only for hosts on your own network
- Talks to
- Only the host you ping
- Exports
- PNG chart, CSV, text
- In Terminal
ping example.com· details below
What it’s for
Ping checks whether a host answers, and how quickly. Each probe is timed from your Mac to the host and back. A steady, low time means a healthy path. Spikes and lost probes are what you notice as lag and stutter.
Use it when
- You want to know whether a server, a router or a device is up.
- A game or a call lags, and you want to see whether the delay is constant or comes in bursts.
- You change something and want a quick before-and-after.
Reading the result
Example in the app: Forty probes to a server about 24 ms away
- Min, Avg and Max sum up the probes in the chart. A Max far above the average means occasional spikes.
- A burst of delay: a few probes took four times longer than usual. One burst is normal. Bursts that come whenever the line is busy point to bufferbloat.
- A red band with a tick on the floor marks lost probes, the ones no answer came back for. Two lost in a row are a short dropout.
- The dashed line is the average.
Below the chart, every probe is listed, either as a table or as a terminal view in the familiar format of ping in Terminal. The statistics count what was sent, received and lost.
What you might see
- Every probe times out. The host may be down, or it may not answer this kind of probe. Try the other mode, or a port the host is known to serve.
- Connection refused. The host is up, but nothing listens on that port. The probe counts as lost, because no service answered.
- A steady time, but higher than you expected. Distance, or a slow link. Traceroute shows where on the path the time is added.
- Spikes only while someone downloads. That’s bufferbloat. Run Speed Test to grade it.
Options worth knowing
- Mode. TCP times a connection to a port, 443 by default, which almost every server answers. ICMP sends a classic echo, like
pingin Terminal, which some hosts and networks block. See ICMP and TCP ping. - Count, up to 10,000 probes, or Continuous until you stop it.
- Chart range: the last 50 probes, or the whole run.
- The name is looked up once, when you press Start, so every probe goes to the same address.
Related
- Latency, Jitter and Packet loss.
- MTR, to see at which hop the loss starts.
Ping in Terminal: continuous, a set count, timestamps
# runs until you press Control-C, then prints the summary $ ping example.com # stops after 100 probes $ ping -c 100 example.com # prints the time each reply arrived (an Apple addition) $ ping --apple-time example.com # also saves the output to a file $ ping -c 100 example.com | tee ping.log # IPv6 has its own command on macOS; needs an IPv6 connection $ ping6 example.com
$ ping -c 5 example.com PING example.com (203.0.113.10): 56 data bytes 64 bytes from 203.0.113.10: icmp_seq=0 ttl=59 time=12.177 ms 64 bytes from 203.0.113.10: icmp_seq=1 ttl=59 time=14.390 ms 64 bytes from 203.0.113.10: icmp_seq=2 ttl=59 time=15.376 ms 64 bytes from 203.0.113.10: icmp_seq=3 ttl=59 time=14.055 ms 64 bytes from 203.0.113.10: icmp_seq=4 ttl=59 time=17.702 ms --- example.com ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 12.177/14.740/17.702/1.808 ms
To ping an IP address, type it in place of the name: ping 192.0.2.1. macOS ping is ICMP only, and -t there sets a timeout, not Windows' continuous mode. Netutilus adds TCP mode, a chart with losses where they happened, and the statistics.
Stop a ping and read the summary line
Press Control-C to stop a running ping. macOS then prints two summary lines, as in the example above: how many probes went out and how many came back, the loss as a percentage, and the round-trip time as min/avg/max/stddev in milliseconds. With -c the summary comes by itself once the count is reached. To see the figures so far without stopping, press Control-T.
A max far above the average, or a large stddev, means spikes rather than a slow line. Ping spikes on Mac Wi-Fi walks through the usual causes.
Windows habits that differ on a Mac (ping -t)
| On Windows | On a Mac |
|---|---|
ping -t host: until you stop it |
ping host: continuous is the default |
ping -n 10 host: ten probes |
ping -c 10 host; on a Mac, -n means numbers only, no name lookups |
ping -l 1000 host: 1,000 bytes of data |
ping -s 1000 host |
ping -w 2000 host: wait 2,000 ms per reply |
ping -W 2000 host, also in milliseconds |
On a Mac, ping -t 10 host does not mean “continuous”: it stops ping after 10 seconds, whatever came back.
Ping a port: TCP ping
macOS ping sends ICMP only and has no port option. To test one port once, use nc: nc -vz -G 2 example.com 443 says “succeeded” or reports the error. Path Check does the same for several ports in a window.
To time a port again and again, switch Ping in Netutilus to TCP: it times a connection to port 443 by default, or to the port you choose, and charts every probe. That works on hosts that drop ICMP. ICMP and TCP ping explains when the two differ.
Try Ping on your Mac
Netutilus puts every network tool in one app. Free to download; Pro is a one-time purchase, never a subscription.
Articles
See also
- ICMP and TCP PingTwo ways to time a host, and why one may answer when the other doesn't.
- LatencyHow long a round trip to a host takes, in milliseconds, and what counts as good.
- Packet LossThe share of packets that never arrive, and when loss is real.
- Path CheckShows how your Mac reaches the network, and whether a host answers on the ports you need.