Insights
WireGuard on iPhone and iPad: Setup and on-demand activation
Import a WireGuard profile on iPhone or iPad, choose when it connects on Wi-Fi or cellular, and verify network changes and a deliberate disconnect.

On this page
Install the official WireGuard app from the App StoreOpens in a new tab on your iPhone or iPad, then import a configuration file or scan a QR code for a server you can use. Turn on the tunnel and check that you can reach the service you set it up for. To connect automatically, use on-demand activationOpens in a new tab for Wi-Fi, cellular or both, with the option to include or exclude Wi-Fi networks by name.
In short:
- Import your profile. Use the configuration file or QR code for your device.
- Choose when to connect. Set on-demand activation for Wi-Fi, cellular or both.
- Test switching and disconnecting. Check the tunnel state and try the same destination after each change.
Get a profile before you connect
1. Get a profile for your device. Ask the administrator of a reachable WireGuard peerOpens in a new tab, the server your app connects to, for a device-specific file or QR code. If you run the peer, use the profile you created for this device.
2. Import the profile in WireGuard. Choose the configuration file or scan the QR code in the app. Keep the file and QR code privateOpens in a new tab and out of support chats.
3. Test the tunnel manually. Turn it on before setting any automatic rules, then open a service you expect to reach through it. A response gives you a working destination to check again when you switch networks. If it doesn't respond, check the profile and server with the administrator before setting up on-demand activation.
Choose when the tunnel turns on
1. Pick Wi-Fi, cellular or both. Open the tunnel's on-demand settings in WireGuard. Wi-Fi only leaves the tunnel off on cellular, and cellular only leaves it off on Wi-Fi. Look for these choices by what they do, since the labels in your app may differ.
2. Choose which Wi-Fi networks qualify. A service set identifier (SSID) is the Wi-Fi network name. You can connect on all Wi-Fi networks, only the names you list, or all except the names you list. If you enable both Wi-Fi and cellular, the name filter affects only Wi-Fi. Cellular still has a rule to connect.
3. Save the rules and enable on-demand. With rules saved, turn on the switch next to the tunnel in the WireGuard listOpens in a new tab to enable on-demand. Without rules, that switch starts or stops the tunnel directly.
Check what happens when you switch networks
For this example, assume you have an iPhone or cellular-capable iPad, a working profile and two Wi-Fi networks called Home and Guest. Use a destination that responded through the tunnel in your manual test and that you can't reach directly on cellular.
1. Allow cellular and Wi-Fi, but exclude Home. Save the rules and turn on the tunnel-list switch to enable on-demand.
2. Start on Home, then move to cellular. The tunnel should be off on Home and come on automatically on cellular. Make a fresh request to your known destination on cellular. It should respond.
3. Join Guest, then return to Home. On Guest, the tunnel should be active and a fresh request to the destination should work. Back on Home, the tunnel should turn off.
4. Disconnect on purpose while on cellular. Return to cellular and confirm the tunnel is active and the destination responds. Then turn off the switch next to the tunnel in WireGuard's list. With rules configured, that switch disables on-demand first and requests disconnection only if the change succeeds.
5. Check that it stays off. While still on cellular, confirm the tunnel stays off and a fresh request to the tunnel-only destination fails. Turn the switch back on if you want to restore automatic activation.
On a Wi-Fi-only iPad, skip the cellular checks and run the disconnect test on Guest with a destination you can't reach there without the tunnel. If the tunnel state is wrong, check the on-demand switch, the network types you selected and the exact Wi-Fi name. If the state is right but the request fails, repeat the manual connection test on that network before revising your policy.
Check which traffic uses the tunnel
On-demand rules decide when WireGuard connects. The profile's AllowedIPs list helps decide which destinations use the tunnel. A profile that routes only a private subnet, a range of network addresses, can reach a service there without sending ordinary web traffic through WireGuard.
A successful transition test tells you that the tunnel followed your rule and carried the request you checked. It doesn't tell you how other destinations are routed or what traffic took which path during the handoff.
Where doxx.net fits. The doxx.net app has its connection built in on iPhone and iPad, where Comms only is the sole routing option. If you're connecting to the doxx.net private network instead of setting up a profile for an existing WireGuard server, download the doxx.net appOpens in a new tab.