Skip to Content
Sindre Sorhus
Back to Actions

Updated

How to Check if iPhone Is Online in Shortcuts

By Sindre Sorhus, who makes the Actions app

With Actions

  1. Install Actions, and open it once.
  2. In your shortcut, add the “Is Online” action of Actions.
  3. Add an “If” action below it that checks if the result is true.
  4. Put the actions that need the internet in the “If” part, and the other actions in the “Otherwise” part.

The action is true when one of the three servers answers, and it waits up to 10 seconds for an answer. For example, upload a file only when the iPhone is online, or show a notification when it is not. The action also works on Mac.

To check one server, like your own, use the “Is Host Reachable” or the “Is Web Server Reachable” action.

Get Actions

Additional actions for the Shortcuts app

Download on the App Store

Free

Requires
iOS 26 or later
Updated
June 2026
US App Store rating
4.8/5 (703 ratings)

More about Actions

Without an app

The “Get Network Details” action gives the name of the Wi-Fi network or the details of the cellular network, but not if the internet works. The iPhone can be on a network without internet, like the Wi-Fi of a hotel before you sign in. A “Wi-Fi” automation runs when the iPhone joins or leaves a network, but it does not check the internet either.