iPhone setup

How to set up a VPN on iPhone

Your iPhone already has a VPN client inside Settings, so you can be protected without installing anything. Prefer an app? The free WireGuard app takes one QR scan.

What you need

About 4 minutes, iOS 15 or later

  • An iPhone on iOS 15 or later
  • An active MobileVPN plan with a free device slot
  • For the QR method: the dashboard open on a second screen, such as a laptop
  • Networks that allow UDP 51820 (WireGuard) or UDP 500 and 4500 (IKEv2)

Pick a method

Device slot used

Delete the device any time to free it

Recommended

WireGuard on iPhone by QR code

WireGuard reconnects quickly when your iPhone hops between Wi-Fi and 5G, and its On-Demand rules keep the tunnel up on its own.

  1. Add the iPhone in your dashboard

    On a laptop, open Account, then VPN, and press Add device. Name it (for example "My iPhone"), choose a city and pick WireGuard. Once the plan is active, press Show QR on the new device.

  2. Install WireGuard from the App Store

    Search for WireGuard and pick the app published by WireGuard Development Team. It is free and has no account of its own.

  3. Scan the code

    Open WireGuard, tap Add a tunnel, then Create from QR code. Point the camera at the code on your laptop and give the tunnel a short name such as Tokyo.

  4. Allow the VPN configuration

    iOS asks once whether WireGuard may add VPN configurations. Tap Allow and confirm with Face ID or your passcode.

  5. Turn it on

    Flip the toggle next to the tunnel. A small VPN badge appears in Control Center and the status line in the app shows a recent handshake.

No app needed

IKEv2 in iPhone Settings, no download

Good for a work iPhone where the App Store is locked, or for anyone who simply wants fewer apps. You type the values from your device panel once.

  1. Create the device with IKEv2

    In Account, VPN, Add device, choose IKEv2 as the protocol. The panel shows a server address and a remote ID, plus a username and a password for this iPhone only once they are issued, shortly after activation.

  2. Open the VPN screen

    On the iPhone go to Settings, General, VPN and Device Management, VPN, then tap Add VPN Configuration.

  3. Fill in the form

    Set the fields as listed in the table below, leave Local ID empty and keep Proxy set to Off. Tap Done in the top corner.

  4. Connect

    Back on the VPN screen, turn VPN Status on. The word Connected and a VPN badge in the status bar confirm the tunnel.

Values to type for Built-in IKEv2 on iPhone
FieldWhat to enter
TypeIKEv2
DescriptionAnything you like, e.g. MobileVPN Tokyo
Serverjp-tokyo.node.mobilevpn.shop (your own value from the panel)
Remote IDThe remote ID from the panel
Local IDLeave empty
User AuthenticationUsername
Username and PasswordThe IKEv2 username and password of this device

Method 3

OpenVPN Connect on iPhone

Pick OpenVPN when a hotel or office network drops UDP. The TCP 443 profile travels like normal HTTPS and gets through most captive networks.

  1. Download a profile on the iPhone

    Open the dashboard in Safari, add the device with OpenVPN and choose UDP 1194 or TCP 443. Tap .ovpn file and the file lands in the Files app.

  2. Install OpenVPN Connect

    Get OpenVPN Connect from the App Store. It is the official client from OpenVPN Inc. and costs nothing.

  3. Open the file with the app

    In Files, tap the .ovpn file, press the share icon and choose OpenVPN. The app shows the profile with an Add button.

  4. Add and connect

    Tap Add, allow the VPN configuration, then slide the profile toggle. The screen turns to Connected with a running timer.

Kill switch on your iPhone

iOS does not give third-party apps a hard block switch, so the safest setup on iPhone is WireGuard with On-Demand: the system brings the tunnel back by itself whenever a network appears.

  1. Open the tunnel settings

    In WireGuard, tap your tunnel name, then Edit in the top corner.

  2. Turn on On-Demand for both networks

    Under On-Demand Activation, enable Cellular and Wi-Fi. For Wi-Fi keep the option Any SSID.

  3. Save

    Tap Save. From now on the tunnel starts before apps get a chance to talk to the new network.

If you turn the tunnel off by hand, On-Demand pauses too. Turn it back on in the app to restore automatic protection.

What the kill switch protects

Split tunneling on your iPhone

iPhone has no per-app split tunneling for personal VPNs. What you can do is keep your home network outside the tunnel, so AirPlay, printers and smart speakers still answer.

  1. Edit the tunnel in WireGuard

    Tap the tunnel, then Edit.

  2. Enable Exclude private IPs

    The option sits under the Peer section. Local addresses such as 192.168.x.x then stay on your Wi-Fi while everything else uses MobileVPN.

  3. Save and reconnect

    Tap Save and flip the toggle off and on once.

Split tunneling explained

iPhone VPN not working? Fixes

The toggle turns on, then off again

The tunnel cannot complete a handshake. Delete the tunnel, remove the device in the dashboard to free the slot, add it again and scan the new code. If it still fails, the network is probably blocking UDP, so try the OpenVPN TCP profile.

Connected, but pages do not load

Open Settings, Wi-Fi and check whether a hotel or airport login page is waiting. Turn the VPN off, accept the network terms in Safari, then turn the VPN back on.

IKEv2 says "Unable to connect to server"

Check that Server and Remote ID match the panel exactly, with no space at the end. Usernames and passwords are case sensitive.

Battery drains faster than before

WireGuard sends almost nothing when the phone is idle. Look in Settings, Battery: if another app sits at the top, the VPN is not the cause.

iPhone VPN questions

Do I need an app to use a VPN on iPhone?

No. iPhone has an IKEv2 client in Settings, and MobileVPN gives you the four values it needs. The WireGuard app is optional and adds On-Demand rules.

Does the VPN stay on when my iPhone moves from Wi-Fi to 5G?

Yes. WireGuard keeps its session when the network changes, and with On-Demand enabled iOS restarts the tunnel on every new network automatically.

Can I use the same QR code on two iPhones?

Each QR code belongs to one device slot. Add a second device in the dashboard for the other iPhone, so both can be online at the same time.

Will my carrier see that I use a VPN?

Your carrier sees an encrypted connection to a MobileVPN server, not the apps or sites inside it.

VPN plans for your iPhone

Go

$2.51 a month

6 devices, $60.29 for 24 months

Saver

$1.50 a month

10 devices, $40.50 for 27 months

Plus

$3.64 a month

10 devices, $87.29 for 24 months

Pro

$6.22 a month

12 devices, $149.39 for 24 months

Compare plans and lengths

Other device guides

Protect your iPhone tonight

Top up in crypto, buy a plan, and your iPhone gets its own slot, file and city.