Skip to Content
Back to Actions

Updated

How to Ping an IP Address or Server from iPhone

By Sindre Sorhus, who makes the Actions app

With Actions

  1. Install Actions, and open it once.
  2. In the Shortcuts app, make a new shortcut, and add the “Ping” action.
  3. Type a domain or an IP address, like 192.168.1.1 or apple.com.
  4. Add the “Show Content” action, and run the shortcut.

The result is like “12.3ms average” with “0% packet loss”, or “Unreachable”. The action sends 5 pings, and waits up to 10 seconds for each. Expand the action to change the count and the timeout.

To ping a device on your home network, like a router or a printer, the app needs Local Network access. Open Actions, tap “Permissions”, and tap “Grant Local Network Access”.

Tips

  • To do something only when a server answers, add an “If” action with the “Is Reachable” property of the result.
  • To check a port, like a web server on port 443, use the “Is Host Reachable” action.

Get Actions

Additional actions for the Shortcuts app

Download on the App Store

Free

Platforms
macOS, iOS, visionOS
Requires
macOS, iOS, or visionOS 26 or later
Category
Utilities
Released
October 2021
Updated
June 2026
Version
4.2.0
Size
29 MB
US App Store rating
4.8/5 (533 ratings)

More about Actions

Without an app

The Shortcuts app has no ping action. On a Mac on the same network, run this in Terminal, with your address:

console
ping -c 5 192.168.1.1

To only see if a website loads, open it in Safari. That shows that the server answers, but not how fast. The Ping action is for when you have only your iPhone.