# How to Ping an IP Address or Server from iPhone

Updated: November 16, 2026

- [Actions](https://sindresorhus.com/actions.md): Additional actions for the Shortcuts app. Price: Free. Platforms: macOS, iOS, visionOS. Get it from: [App Store](https://apps.apple.com/app/id1586435171). Requires macOS, iOS, or visionOS 26 or later. Free older versions for macOS 15, 14, 13, and 12: [download](https://sindresorhus.com/actions#older-versions).

URL: https://sindresorhus.com/guides/ping-from-iphone

iPhone has no Terminal, so it has no `ping` command. The free [Actions](https://sindresorhus.com/actions.md) app adds a “Ping” action to the Shortcuts app. Type a domain or an IP address, run the shortcut, and see the average time and the packet loss.

## With Actions

1. Install [Actions](https://sindresorhus.com/actions.md), and open it once.
1. In the Shortcuts app, make a new shortcut, and add the “Ping” action.
1. Type a domain or an IP address, like `192.168.1.1` or `apple.com`.
1. 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”.

- 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.

## 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.