# How to Join a Wi-Fi Network with Shortcuts on iPhone and Mac

Updated: November 24, 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. Size: 13 MB on Mac, 29 MB on iPhone and iPad. Free older versions for macOS 15, 14, 13, and 12: [download](https://sindresorhus.com/actions#older-versions). US App Store rating: 4.8/5 (703 ratings).
- [Shortcutie](https://sindresorhus.com/shortcutie.md): Power up the Shortcuts app on Mac. Price: $10, one-time purchase, plus tax where applicable. Platforms: macOS. Get it from: [Gumroad](https://sindresorhus.gumroad.com/l/shortcutie?wanted=true), [Setapp](https://go.setapp.com/stp181?refAppID=1814&utm_medium=vendor_program&utm_content=button). Requires macOS 26 or later. Size: 9 MB. Free older versions for macOS 15: [download](https://sindresorhus.com/shortcutie#older-versions). Gumroad rating: 4.9/5 (27 ratings).

URL: https://sindresorhus.com/guides/join-wi-fi-network-shortcuts

On iPhone, add the “Join Wi-Fi” action of the free [Actions](https://sindresorhus.com/actions.md) app, and type the name and the password of the network. On Mac, use the “Join Wi-Fi” action of [Shortcutie](https://sindresorhus.com/shortcutie.md). [Without an app](https://sindresorhus.com/guides/join-wi-fi-network-shortcuts#without-an-app), the “Set Wi-Fi” action of Shortcuts only turns Wi-Fi on or off.

## On iPhone with Actions

1. Install [Actions](https://sindresorhus.com/actions.md), and open it once.
1. In your shortcut, add the [“Join Wi-Fi”](https://sindresorhus.com/actions#:~:text=Join%20Wi%2DFi) action of Actions.
1. Type the name of the network in “Name (SSID)”, and its password in “Password”. Leave the password empty for an open network.
1. Run the shortcut, and tap “Join” when iOS asks.

iOS always asks before an app joins a network, so the shortcut cannot join without you. To ask, the action opens the Actions app for a moment, and then goes back to Shortcuts. When the shortcut runs in the background, like from a widget, add the “Go to Home Screen” action after it.

The action has more options: “Wait for Connection”, “Is WEP” for an old network, and “Is Hidden” for a network that does not show its name.

## On Mac with Shortcutie

1. Install [Shortcutie](https://sindresorhus.com/shortcutie.md), and open it once.
1. In your shortcut, add the “Join Wi-Fi” action of Shortcutie.
1. Type the name of the network, and its password. Leave the password empty for an open network.
1. Run the shortcut. If Wi-Fi is off, the action turns it on first.

## Without an app

The “Set Wi-Fi” action of Shortcuts turns Wi-Fi on or off, but it cannot choose a network. To join one, use the settings:

- **iPhone:** Open “Settings › Wi-Fi”, and tap the network.
- **Mac:** Click Wi-Fi in the menu bar, and click the network.

Your devices join known networks by themselves. On Mac, you can also join a network with a Terminal command, where `en0` is usually the Wi-Fi:

```console
networksetup -setairportnetwork en0 'Network Name' 'password'
```
