Updated
How to Check if iPhone Is Online in Shortcuts
By Sindre Sorhus, who makes the Actions app
With Actions
- Install Actions, and open it once.
- In your shortcut, add the “Is Online” action of Actions.
- Add an “If” action below it that checks if the result is true.
- 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
Free
- Requires
- iOS 26 or later
- Privacy
- No personal data collected
- Updated
- June 2026
- US App Store rating
- 4.8/5 (703 ratings)
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.
