# How do I set up WireGuard on an iPhone?

> Set up WireGuard on an iPhone or iPad against a personal TunnelVPS server: App Store app, QR code from the server, on-demand rules. 5 steps.

- URL: https://tunnelvps.com/guides/wireguard-iphone/
- Last updated: 2026-11-16
- Publisher: TunnelVPS (https://tunnelvps.com)

From the App Store to a working tunnel on an iPhone or iPad, with the configuration read as a QR code from the TunnelVPS server.

**Quick answer — How do I set up WireGuard on an iPhone?**

Install the official WireGuard app from the App Store, print the iPhone's client file as a QR code on the **TunnelVPS** server, and scan it from the app. iOS asks once to allow a VPN configuration; after that the tunnel switches on from the app or from Settings. The whole setup takes 5 steps.

**In brief**

- **App**: WireGuard for iOS, from the App Store, as listed on wireguard.com.
- **Configuration**: a QR code printed on the server with `qrencode`.
- **Permission**: iOS asks once to add the VPN configuration.
- **Other options**: Outline and AmneziaVPN also have iOS apps.

## What are the steps on an iPhone?

*WireGuard setup on iPhone and iPad against a TunnelVPS server, 5 steps*

| Step | Where | What to do |
| --- | --- | --- |
| 1 | TunnelVPS server | Install WireGuard and add a `[Peer]` for the iPhone, as the install guide shows. |
| 2 | TunnelVPS server | Print the iPhone's client file as a QR code with `qrencode -t ansiutf8`. |
| 3 | iPhone | Install WireGuard from the App Store. |
| 4 | WireGuard app | Add a tunnel from a QR code, scan the code from the terminal, name the tunnel. |
| 5 | iOS prompt | Allow the VPN configuration, then switch the tunnel on. |

## What does the iPhone need from the server?

**One client file made only for this iPhone, holding its own private key and tunnel address.** On the server, create the key pair for the phone, add its `[Peer]` block to `wg0.conf` with the next free address, such as `10.8.0.2/32`, and reload the interface. The client file then points back to the server: its public key, its IP address from the TunnelVPS dashboard and the UDP port picked during the [install](https://tunnelvps.com/help/install-wireguard-in-one-command/ "How do I install WireGuard on my TunnelVPS server?").

*Client file for the iPhone (dummy values in capitals)*

```ini
[Interface]
PrivateKey = DEVICE_PRIVATE_KEY
Address = 10.8.0.2/32
DNS = 1.1.1.1

[Peer]
PublicKey = SERVER_PUBLIC_KEY
Endpoint = 203.0.113.10:51820
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25
```

## How does the configuration get onto the iPhone safely?

**Scan it as a QR code straight from the SSH terminal, so the private key never travels by email or chat.** The `qrencode` package prints the file as a block of characters that the camera reads from a laptop screen. Once the tunnel is saved on the phone, delete the client file from the server or keep it in a folder only root can read.

*Install qrencode and print the iPhone's file*

```bash
apt install qrencode
qrencode -t ansiutf8 < /etc/wireguard/clients/iphone.conf
```

## Can the iPhone switch the tunnel on by itself?

**Yes: the WireGuard app has on-demand rules that bring the tunnel up on chosen networks.** A common rule turns the tunnel on for any Wi-Fi except the home network, and on mobile data. That keeps the phone covered in cafés, hotels and airports without a tap. The option sits in the tunnel's settings inside the app; the exact wording may change between app versions.

## What if the iPhone is on a network that blocks WireGuard?

**Switch that one phone to Outline or AmneziaWG, which both have iOS apps.** Some hotel, campus or national networks drop WireGuard traffic. Outline uses Shadowsocks and AmneziaWG adds junk packets and changed headers, so deep packet inspection has a harder time spotting them. Both run on the same TunnelVPS server next to WireGuard; the [protocol comparison](https://tunnelvps.com/wireguard-vs-outline-vs-amneziawg/ "Which VPN protocol should a personal server run?") explains the trade-offs.

## Which other VPN apps run on an iPhone or iPad?

**TunnelVPS read the WireGuard, Outline and Amnezia pages on 16 November 2026: all three list an iOS app, so an iPhone can run WireGuard, Outline or AmneziaWG against one server.** Each app talks to the same TunnelVPS server, so one server can serve WireGuard to most devices and a second protocol to the one that needs it. The [Outline VPS page](https://tunnelvps.com/outline-vps/ "What is an Outline VPS and how is it set up?") and the [AmneziaWG VPS page](https://tunnelvps.com/amneziawg-vps/ "What is an AmneziaWG VPS and when is it needed?") explain how each is installed on the server side.

## Which TunnelVPS plan suits an iPhone user?

**Solo ($2.25 a month on 12 months, 2 TB of traffic) covers one person with a phone and a laptop.** Every plan has one IPv4 address, an IPv6 /64 and a monthly traffic allowance, and costs the same in all six cities. Solo, Duo and Home start at 3 months. The [pricing page](https://tunnelvps.com/pricing/ "How much does a TunnelVPS VPN server cost?") shows each rental length, and the [traffic guide](https://tunnelvps.com/how-much-traffic-does-a-vpn-use/ "How much traffic does a personal VPN use in a month?") estimates a month of use by device.

## iPhone questions

### Is the WireGuard app for iPhone free?

wireguard.com lists the iOS app on the App Store as the official client. TunnelVPS charges nothing for it; the only cost is the server.

### Does the same setup work on an iPad?

Yes. The iOS app runs on iPad. Give the iPad its own key pair and tunnel address rather than reusing the iPhone's file.

### Does the tunnel drain the battery?

WireGuard sends little traffic when idle. The `PersistentKeepalive = 25` line in the sample sends a small packet every 25 seconds; remove it if the phone does not need to stay reachable.

### What if the phone is lost?

Delete its `[Peer]` block on the server and reload WireGuard. The phone's key stops working at once, and the other devices are not affected.

**Verdict**

- **WireGuard from the App Store** is the simplest iPhone client: one QR code and one permission.
- **Keep Outline or AmneziaVPN** on the phone for trips to networks that block WireGuard.

## Sources

1. [WireGuard: installation and client apps](https://www.wireguard.com/install/) — WireGuard (read 2026-11-16)
2. [WireGuard: quick start (keys, peers)](https://www.wireguard.com/quickstart/) — WireGuard (read 2026-11-16)
3. [Outline: get started](https://getoutline.org/get-started/) — Outline Foundation (read 2026-11-16)
4. [AmneziaVPN client: platforms and protocols](https://github.com/amnezia-vpn/amnezia-client) — Amnezia (read 2026-11-16)

**Get the server first** Solo carries 2 TB a month for a phone and a laptop, at $2.25 a month on 12 months. [Order Home for 12 months](https://tunnelvps.com/app/checkout/?plan=home&term=12m&image=ubuntu-24.04&from=guides-wireguard-iphone&lang=en) · [Install WireGuard on the server](https://tunnelvps.com/help/install-wireguard-in-one-command/ "How do I install WireGuard on my TunnelVPS server?")

---

TunnelVPS: TunnelVPS rents Linux KVM servers for a personal VPN (WireGuard, Outline or AmneziaWG) in New York, Dallas, Los Angeles, London, Amsterdam and Frankfurt, paid in crypto with no ID document. 5 plans from 2 to 16 GB of RAM and 2 to 6 TB of traffic a month cost the same in all six cities; on the 12-month term each is priced at least 25% under a named comparable plan of a no-KYC crypto host, read on 16 November 2026. The operator is DomaineGoat LLC, Panama.
