PDF download Download Article
Plus, we include some frequently asked questions
PDF download Download Article

This wikiHow article teaches you how to ping an IP address or hostname from your Mac. Pinging an address will tell you approximately how strong your connection to that address is. The Network Utility app was retired with the release of macOS 11 (Big Sur). However, you can still ping using the Mac Terminal. If you want to see how many gateways are between your computer and the address you want to ping, you'll need to run "Traceroute" instead.

Ways to Ping on Mac

Open Terminal using Spotlight, and then type the command "ping [address]". Replace [address] with the address of the site you want to ping (i.e. facebook.com). To stop the ping command once it's been started, press Cmd+C . On Catalina or earlier, you can use Network Utility to ping.

Method 1
Method 1 of 3:

Using Terminal

PDF download Download Article
  1. Click the Spotlight icon, which resembles a magnifying glass, in your menu bar. This opens the Spotlight search feature.
    • Alternatively, you can press Cmd + Space to open Spotlight.
    • If there is a magnifying glass icon on one of your function keys on your keyboard, pressing that key will open Spotlight as well.
  2. When you type "terminal" into Spotlight, it will pull up the Terminal app.
    Advertisement
  3. This is the Terminal command to ping a computer or website. Replace "[address]" with the address of the computer or website you want to ping.
    • For example, to ping Facebook, you would type in ping facebook.com here.
    • When typing the address to ping, you can type it with or without the "www," but you should not include the "http://" or "https://".
  4. Below your "ping" command, you'll see several lines of ping results begin to appear. You can read these results to get an idea of the connection strength between your computer and the address you pinged.
    • The "time=#ms" (where "#" is a number) tag refers to the number of milliseconds it took for the address to respond to your ping.
      • The lower the number of milliseconds per ping, the stronger your connection to the computer or address you're pinging.
    • After stopping the ping command, the Terminal will print a recap of what happened. It will tell you how many packets were sent, how many packets were received, and what the average round trip of a package is.
      • If you receive fewer packets than you sent, you're experiencing what is known as packet loss. The terminal will display packet loss as a percentage. Packet loss can be caused by a poor Wi-Fi connection, ISP-side internet issues, or an overloaded connection. It manifests as lag in video games, slow downloads, and choppy video playback, to name a few. [1]
      • Check out our article on fixing packet loss if you're experiencing it.
  5. Advertisement
Method 2
Method 2 of 3:

Using Network Utility (Catalina & Earlier)

PDF download Download Article
  1. Click the Spotlight icon, which resembles a magnifying glass, in your menu bar. This opens the Spotlight search feature.
  2. When you type "network utility" into Spotlight, it will pull up the Network Utility app.
    • The Network Utility app is not available on macOS 11 (Big Sur) or later. You can use the Terminal instead.
  3. This tab is at the top of the window.
  4. Use the white box at the top of the page to enter a computer address or website you want to ping.
    • For example, if you want to ping a specific computer, you would type in its IP address.
    • To ping a website (e.g., Facebook), type in its address as follows: website.com (e.g., facebook.com ).
      • When typing the address to ping, you can type it with or without the "www," but you should not include the "http://" or "https://".
  5. By default, your Mac will send pings until you close the Network Utility window. You can set it to ping your selected address a specific number of times by using the following steps:
    • Check the "Send only ___ pings" box.
    • Type the number of pings you want to use into the blank box.
  6. It's a blue button on the right side of the page. Your Mac will begin pinging the address.
  7. In the white pane at the bottom of the Network Utility window, you should see a list of ping results appearing. You can read these results to get an idea of the connection strength between your computer and the address you pinged.
    • The "time=#ms" (where "#" is a number) tag refers to the number of milliseconds it took for the address to respond to your ping.
      • The lower the number of milliseconds per ping, the stronger your connection to the computer or address you're pinging.
    • Network Utility will print a recap of what happened. It will tell you how many packets were sent, how many packets were received, and what the average round trip of a package is.
  8. Advertisement
Method 3
Method 3 of 3:

FAQ

PDF download Download Article
  1. 1
    Why is ping not working via Terminal? Many Mac users have found that when updating to Sequoia, the ping command wasn't working in the Terminal properly. To fix this, click on the Apple menu and go to System Settings > Privacy & Security > Full Disk Access . Then, toggle on Terminal .
  2. 2
    Can I run ping without it being continuous? To ping a certain number of packets instead of running a continuous ping, use the command ping -c [number of pings] [address] . Replace [number of pings] with how many times you want the ping command to run. For example, if you wanted to ping Google 8 times, you would write ping -c 8 google.com . [2]
  3. 3
    Why am I getting an error when I try to use ping? There are a few errors you might encounter when running the ping command:
    • Unknown host: This error could mean that the host or domain does not exist, but it also may mean the name cannot be translated into an IP address by your DNS servers.
    • Destination host unreachable: This error means your computer was unable to send any packets to the address. It could be an issue on your end or somewhere between your computer and the host destination.
    • Request timed out: This error means your computer sent the ping request but did not receive a reply. The host may not be online, there could be a network problem on the host's end, or the ping could've been blocked by the host's firewall.
    • Name or service not known: This error means the hostname or address you're trying to ping does not exist. If the host does exist, there's a problem with your network configuration.
  4. Advertisement


Community Q&A

Search
Add New Question
  • Question
    How do you stop the ping?
    Community Answer
    Press Ctrl - C.
Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Pinging an address won't always return accurate results, as some websites use false IP addresses to prevent users from finding their true IP addresses.
      Advertisement

      About This Article

      Article Summary X

      1. Open the Terminal app in the Utilities folder.
      2. Type "ping" followed by an IP address or website.
      3. Press Enter or Return .
      4. Review the results.

      Did this summary help you?
      Thanks to all authors for creating a page that has been read 752,328 times.

      Reader Success Stories

      • Anonymous

        Jul 27, 2016

        "Thanks."
      Share your story

      Is this article up to date?

      Advertisement