How to Set Up and Use a VPN on an iPhone or iPad
Two ways to use a VPN on iOS: a provider app, or a manual profile for a work or self-hosted VPN. With what a VPN changes on a phone and what it does not.
3 min readBy Soumya
Reviewed by the AmazingRDP technical team

Run your own VPN server: a Linux VPS gives you root access and a public IP address. See Linux VPS from $6.99
A VPN on an iPhone or iPad sends the device's internet traffic through an encrypted tunnel to a server, and from there to the internet. The network you are on, such as a café's Wi-Fi, sees only the tunnel; the sites you visit see the VPN server's address in place of yours. iOS supports this in two ways: through an app from a VPN provider, or through a profile you configure by hand.
What it changes, and what it does not
| A VPN on your phone does | It does not |
|---|---|
| Hide your traffic from the Wi-Fi or mobile network you use | Make you anonymous: the VPN provider can see what the network no longer can |
| Show websites the VPN server's IP address and country | Stop apps from identifying you once you are signed in |
| Let you reach a private network, such as your company's | Hide your location from apps that use GPS |
| Protect against phishing or malicious apps |
The longer version is in understanding VPNs.
Way 1: a provider's app
- Choose a provider you have reason to trust. On a phone the app sees all your traffic, so the choice matters more than the price. Be wary of free VPN apps from unknown makers; several have been caught selling their users' data.
- Install the provider's app from the App Store and sign in.
- At the first connection iOS asks: "…Would Like to Add VPN Configurations". Tap Allow and confirm with your passcode or Face ID.
- Choose a server location and connect. A VPN indicator appears in the status area or Control Centre while the tunnel is up.
One provider with a usable free plan is described in setting up Proton VPN.
Way 2: a manual configuration
For a company VPN or one you run yourself, iOS has clients for IKEv2, IPsec and L2TP built in.
- Open Settings, General, VPN & Device Management, VPN.
- Tap Add VPN Configuration.
- Choose the Type your administrator named, usually IKEv2.
- Fill in Description (any name), Server, Remote ID, and the user name and password or certificate.
- Tap Done, then switch the VPN on.
Companies usually send a configuration profile that fills all this in. Install profiles only from senders you know: a profile can route all your traffic wherever its author likes.
WireGuard and OpenVPN
These two popular protocols are not built into iOS but have official free apps in the App Store. Each imports a configuration file or QR code from your server and then appears in Settings, VPN like any other.
Switching it on and off
- Settings, VPN: a switch, and the list of configurations if you have several.
- The provider's app.
- Most apps offer Connect On Demand or "auto-connect", which raises the tunnel whenever the phone goes online, or only on unknown Wi-Fi.
Settings worth knowing
| Setting | Does |
|---|---|
| Kill switch | Blocks traffic if the tunnel drops, so nothing leaks outside it |
| Auto-connect on untrusted Wi-Fi | Protects you on public networks without thinking about it |
| Protocol | WireGuard and IKEv2 reconnect fastest when the phone moves between Wi-Fi and mobile data |
| Split tunnelling | Rarely available on iOS; expect all traffic to use the tunnel |
iCloud Private Relay is not a VPN
Private Relay, part of iCloud+, hides your address in Safari by sending traffic through two relays. It covers Safari and little else, does not let you choose a country, and cannot connect you to a private network. It works alongside a VPN for different purposes.
Problems
| Sign | Try |
|---|---|
| Will not connect | Another server or protocol in the app; switch Airplane Mode on and off; restart the phone |
| Connected, but nothing loads | Disconnect and reconnect; if it only happens on one Wi-Fi, that network blocks VPNs |
| Battery drains faster | Some drain is normal. WireGuard and IKEv2 use least |
| An app refuses to work | Banking and streaming apps sometimes block VPN addresses; pause the VPN for that app's session |
| A VPN you do not recognise is listed | Remove it under VPN & Device Management, along with any profile you did not install on purpose |
Running your own VPN server
If you would sooner trust yourself than a provider, a small Linux server running WireGuard does the job, and the iPhone connects with the WireGuard app. The websites you visit then see the server's address. VPN software is allowed on our VPS and dedicated plans, not on the shared remote desktops; see the Linux VPS plans. A lighter alternative for the desktop is a browser with a VPN built in: see browsers with a built-in VPN.
Questions
How do I set up a VPN on my iPhone?
Install your provider's app, sign in, and allow it to add a VPN configuration. For a manual setup go to Settings, General, VPN & Device Management, VPN.
Does the iPhone have a built-in VPN?
It has built-in VPN clients for IKEv2, IPsec and L2TP, but no VPN service. You need a provider, a company VPN or your own server.
Is iCloud Private Relay a VPN?
No. It hides your address in Safari only and cannot choose a country or reach a private network.
Should I leave the VPN on all the time?
On public Wi-Fi, yes. Elsewhere it is a matter of preference; auto-connect on untrusted networks is a good middle way.