WireGuard is a modern VPN protocol: small, fast, and easy on the battery. Lots of VPN providers use it inside their own apps (often under a brand name), and if that's what you have, you don't need this guide. Just pick WireGuard in the app's protocol setting and you're done.
This guide is for the other case: someone gave you a WireGuard configuration. Maybe your provider offers config files for manual setup, maybe you run WireGuard on a home router or a server, maybe your workplace uses it. You'll put it into the official WireGuard app, and it takes a couple of minutes.
Step 1: Get the official app
The WireGuard project lists two Android downloads on its install page:
- WireGuard on Google Play (the easy option, updates itself)
- A direct APK from download.wireguard.com, for phones without Google Play
Get it from one of those two places. There are plenty of other "WireGuard" apps in the store, some are fine third-party clients, some are not, and none of them is needed for a basic setup. If you go the APK route, our guide to installing a VPN without Google Play explains the permission you'll need.
Step 2: Get your configuration
A WireGuard config is a short text file ending in .conf. It contains your private key, the server's public key, the server address and the allowed IP ranges. It usually comes in one of these forms:
- A .conf file you download from your provider's website or your router's admin page
- A .zip with several .conf files (one per server)
- A QR code shown on a computer screen
Treat this file like a password. Anyone who has it can use your tunnel. Don't post screenshots of the QR code, and delete the file from your Downloads folder once it's imported.
Step 3: Add the tunnel
Open the WireGuard app and tap the blue + button. You get three choices.
Import from file or archive
- Tap Import from file or archive.
- Find the .conf or .zip file (usually in Downloads) and tap it.
- The tunnel appears in the list, named after the file. A zip imports all the tunnels inside it at once.
Scan from QR code
- Tap Scan from QR code and allow camera access.
- Point the camera at the code on your computer screen.
- Give the tunnel a name when asked.
This is the nicest option when you're setting up a home server. Nothing has to be copied to the phone.
Create from scratch
Tap Create from scratch if you want to type everything in yourself. The app fills in a new private key for you (there's a generate button next to the field). You'll then need to add the phone's public key on the server side. This is mostly for people running their own server, and if that's not you, skip it.
Step 4: Connect
- Tap the toggle next to the tunnel name.
- The first time, Android asks whether you trust WireGuard to set up a VPN connection. Tap OK.
- The key icon appears in the status bar. Done.
If the toggle flips on but nothing loads, the usual suspects are a wrong server address or port, a server that's down, or a network (school, office, some countries) that blocks the UDP traffic WireGuard uses. Try mobile data to rule out the Wi-Fi.
Useful settings inside the app
Choose which apps use the tunnel
Tap the tunnel, then the pencil (edit) icon. Under the interface section you'll see All Applications. Tap it and you get two tabs:
- Exclude: the apps you tick skip the VPN and use your normal connection.
- Include only: only the apps you tick use the VPN.
Save, then toggle the tunnel off and on again so the change takes effect. This is Android's per-app VPN feature, and there's more on how it behaves in our split tunneling guide.
Exclude private IPs
In the peer section, if the allowed IPs are set to send everything through the tunnel, the app offers an Exclude private IPs checkbox. Ticking it keeps local network addresses (your printer, your Chromecast, your router's admin page) off the tunnel so they still work. Handy at home.
Make WireGuard always-on
The WireGuard app works with Android's system-level always-on setting.
- Go to Settings → Network & internet → VPN (on Samsung: Settings → Connections → More connection settings → VPN).
- Tap the gear next to WireGuard.
- Turn on Always-on VPN, and Block connections without VPN if you want a kill switch.
Set this up with the tunnel you want switched on. The app also has its own Restore on boot option in its settings, which brings enabled tunnels back after a restart. The side effects of the blocking option are covered in our always-on VPN guide.
Things WireGuard doesn't do
- It doesn't hide that it's WireGuard. The protocol wasn't designed to disguise itself, so networks that actively block VPNs (and countries with heavy filtering, such as China) can often spot and block it. Commercial apps with obfuscated protocols tend to do better there.
- It doesn't pick servers for you. Each config points at one server. Want another country? You need another config.
- It isn't a privacy policy. The protocol is secure, but whoever runs the server can still see your traffic leaving it. That's true for every VPN.
And if you're using it while traveling, remember that VPN use is restricted in some countries. Check the local rules first.