Connect to WireGuard VPN on iPhone/iOS
Step-by-step guide to setting up WireGuard VPN on your iPhone or iPad
iOS Native
Official WireGuard app for iOS
Easy Setup
Quick configuration with QR code
Secure
End-to-end encryption on iOS
Prerequisites
Before you begin, make sure you have:
- iPhone or iPad running iOS 12.0 or later
- WireGuard VPN server already set up (see our server setup guide)
- Server configuration file or QR code from your VPN server
- App Store access to download WireGuard app
1. Install WireGuard App
Download the official WireGuard app from the App Store:
- Open the App Store on your iPhone/iPad
- Search for "WireGuard"
- Install the official app by WireGuard Development Team
- Open the WireGuard app after installation
App Store Link: WireGuard on App Store
2. Add VPN Configuration
You have two options to add your VPN configuration:
Option A: Scan QR Code (Recommended)
- Open the WireGuard app
- Tap the "+" button in the top right
- Select "Create from QR code"
- Point your camera at the QR code from your server
- The configuration will be automatically imported
Option B: Import Configuration File
- Get your client configuration file from your server
- Open the WireGuard app
- Tap the "+" button
- Select "Create from file or archive"
- Choose the configuration file (usually ends in .conf)
3. Configure Connection Settings
After importing, you can customize the connection:
- Name: Give your VPN connection a friendly name
- Private Key: Automatically generated (keep this secure)
- Public Key: Share this with your server administrator
- Address: Your VPN IP address (e.g., 10.8.0.2/24)
- DNS Servers: DNS servers to use when connected
4. Add Server Peer Information
In the WireGuard app, add your server as a peer:
- Public Key: Your server's public key
- Endpoint: Your server's IP address and port (e.g., example.com:51820)
- Allowed IPs:
- Use
0.0.0.0/0to route all traffic through VPN - Use
10.8.0.0/24to only route VPN network traffic
- Use
- Persistent Keepalive: Set to 25 seconds (important for mobile connections behind NAT)
5. Connect to VPN
To connect to your VPN:
- Open the WireGuard app
- Find your VPN configuration in the list
- Toggle the switch to connect
- You may be prompted to allow VPN configuration - tap "Allow"
- Enter your device passcode or use Face ID/Touch ID
The status indicator will show "Connected" when successfully connected.
6. Verify Connection
Verify your VPN is working correctly:
- Check the connection status in WireGuard app (should show "Connected")
- Visit a website like whatismyipaddress.com - it should show your server's IP address
- Check the data transfer statistics in the app
7. iOS-Specific Tips
- Background Connection: WireGuard can stay connected in the background
- Auto-Connect: Enable "On-Demand" to automatically connect when on untrusted networks
- Battery Usage: WireGuard is very efficient and has minimal battery impact
- Split Tunneling: Configure AllowedIPs to exclude certain apps or websites
- Notifications: Enable notifications to see connection status changes
8. Troubleshooting iOS Connection Issues
If you're having trouble connecting:
- Check server status: Ensure your VPN server is running
- Verify configuration: Double-check server IP, port, and keys
- Check network: Try connecting from a different network (WiFi vs cellular)
- Restart app: Force close and reopen the WireGuard app
- Update app: Make sure you have the latest version from App Store
- Check firewall: Ensure your server firewall allows UDP port 51820
For more help, see our troubleshooting guide.
Related Guides
- Server Setup Guide - Set up your VPN server
- Android Setup Guide - Connect from Android
- Windows Client Guide - Connect from Windows
- Troubleshooting - Fix connection issues