Skip to content

WireGuard vs OpenVPN on Android: which one should you use?

Both protocols are secure. How WireGuard and OpenVPN differ on Android: design, encryption, switching networks, battery, blocked networks, which to pick.

PryVPN TeamPublished 5 min read
Illustration: two lanes leaving a phone, a fast one with a lightning bolt and a steady one with a padlock
Short answer

Both are secure when set up well. On a phone, WireGuard is usually the better default: a small protocol with a fixed set of modern cryptography, a one-round-trip handshake and smooth handover when you switch between Wi-Fi and mobile data. OpenVPN's strengths are flexibility and TCP support. Neither gets past networks that block VPNs on its own; both need an extra layer for that.

If you've looked at VPN settings on Android, you've probably seen both names. OpenVPN has been the standard open-source VPN protocol for two decades; WireGuard is the newer one that has become the default in many apps. Both are secure when they're set up well. They differ in design, and on a phone those differences matter.

The short comparison

WireGuard OpenVPN
Design A small protocol with very few options, meant to be "easily implemented in very few lines of code, and easily auditable" A mature, very configurable system with many options and plugins
Encryption A fixed set: Curve25519, ChaCha20-Poly1305, BLAKE2s (protocol page) Negotiated over TLS; by default AES-256-GCM, AES-128-GCM or ChaCha20-Poly1305 (manual)
Transport UDP only UDP or TCP
Handshake One round trip, based on the Noise framework A TLS session on a control channel, then the data channel
Switching networks Built to roam: the session carries on when your address changes Can follow an address change with the right options; phone apps often reconnect instead
Where it runs In the Linux kernel since version 5.6; on Android, inside the VPN app or a kernel module if the phone has one In user space, inside the VPN app
Restrictive networks UDP is easy to block; needs an outer layer Can run over TCP 443, but its traffic can be fingerprinted

Security: both are sound, differently

WireGuard removes choices. There's one set of modern algorithms, so there's nothing to misconfigure and nothing to downgrade. If one of them were ever broken, the answer would be a new protocol version rather than a settings change. The protocol has been described in peer-reviewed research (NDSS 2017) and has been part of the Linux kernel since version 5.6, when its author announced that "kernels from here on out will have WireGuard built-in by default".

OpenVPN uses TLS, the same family of protocols that protects the web, and negotiates the cipher. That flexibility is useful for companies with existing infrastructure. It also means the security of a given setup depends on how it's configured: modern defaults are good, old configurations may not be.

One more WireGuard trait matters for privacy: a server doesn't answer packets that aren't authenticated, so it's hard to probe from the outside.

On a phone: what you'll notice

Moving between Wi-Fi and mobile data

Phones change networks constantly. WireGuard is designed for this: when an authenticated packet arrives from a new address, the server simply starts sending to that address, as the WireGuard paper describes. In practice, walking out of the café onto mobile data usually doesn't interrupt the tunnel. OpenVPN can be set up to follow a client's new address too, but depending on the server and the app, a change of network often means a reconnection.

Battery

A VPN costs some battery on any protocol, because the phone encrypts everything it sends. What drains a VPN on Android in practice is more often the system than the protocol: battery savers that close the app and force reconnections. Our guide to a VPN that keeps disconnecting on Android covers that. With WireGuard, an idle tunnel stays quiet, apart from a small keep-alive that apps like PryVPN send every few tens of seconds to keep the connection open through routers; the battery help article has the details.

Speed

We won't quote benchmark numbers we haven't measured on your phone. The design reasons are well known: WireGuard's handshake is short, its cryptography is fast on phones without special hardware, and it can run inside the kernel. OpenVPN over TCP pays an extra cost, because running TCP inside TCP makes both layers retry lost packets.

Networks that block VPNs

Here neither protocol wins on its own. WireGuard uses UDP only, which many hotel and office networks drop, and its first handshake message always has the same size. WireGuard's own documentation says obfuscation "should happen at a layer above WireGuard". OpenVPN can use TCP port 443, but researchers working with an internet provider identified over 85% of OpenVPN connections by their fingerprints, with negligible false positives (USENIX Security 2022). Our guide to VPN obfuscation and stealth mode explains how an outer layer solves this, and our guide to hotel Wi-Fi that blocks VPNs shows it in practice.

Which should you use?

  • Choose WireGuard for everyday use on a phone: public Wi-Fi, travel, privacy at home. It's the simpler, more modern design.
  • Choose OpenVPN when you need to connect to an existing OpenVPN server, such as a company's, or when you specifically need its configuration options.
  • Either way, what matters as much as the protocol is who runs the server, what they log, and whether the app leaks DNS or IPv6.

What PryVPN uses

PryVPN is built on WireGuard (Curve25519 and ChaCha20-Poly1305). Each device gets its own key pair, created on the phone; the private key never leaves it. For networks that block VPNs, the Auto protocol tries WireGuard over UDP first and switches to Stealth, WireGuard inside a real TLS 1.3 connection on TCP port 443, when UDP doesn't get through. The protocol help article explains each option, and our WireGuard VPN page summarizes the rest.

Frequently asked questions

Is WireGuard more secure than OpenVPN?

Not in a simple "stronger encryption" sense: both use strong, modern cryptography when configured well. WireGuard's advantage is that there's much less to get wrong: fewer options, less code, no negotiation.

Is OpenVPN obsolete?

No. It's maintained, widely deployed and flexible, and many organizations depend on it. On phones, WireGuard is simply a better fit for how devices move between networks.

Does WireGuard work over TCP?

Not by itself. WireGuard is UDP only by design. To cross networks that only allow web traffic, apps wrap it in another layer, such as TLS on TCP port 443.

Can I use WireGuard without an app?

On Android you need an app that implements it through Android's VPN permission; Android's built-in VPN settings don't include WireGuard.

If you'd like to try a WireGuard VPN with a stealth mode for blocked networks, you can download PryVPN.

Sources

  1. WireGuard: protocol and cryptography
  2. Donenfeld, WireGuard: Next Generation Kernel Network Tunnel (NDSS 2017)
  3. WireGuard: known limitations
  4. WireGuard mailing list: WireGuard 1.0.0 for Linux 5.6 released
  5. OpenVPN 2.6 reference manual
  6. Xue et al., OpenVPN is Open to VPN Fingerprinting (USENIX Security 2022)

Spotted a mistake? Write to support@pryvpn.com and we'll fix it and update the date.

Go deeper

Guides and help articles on the same subject.

More from the blog

Try PryVPN for free

Free, no card, no activity logs. Download the Android app from this site and install it in a minute.

Version 0.1.25.91.68538 · 27.9 MB · Android 8.0 or later

How to install it

  • Free, no card
  • No activity logs
  • WireGuard encryption
  • Signed by PryVPN
QR code that opens the PryVPN download page
On a computer? Scan this code with your phone to download it there.

Your download has started

Install Pry VPN in about a minute. Android asks only once.

  1. Wait for the download

    It takes a few seconds. You can follow it at the top of the screen.

  2. Keep the file

    If your browser warns that this type of file can be harmful, choose to download it anyway.

  3. Open it

    Tap the notification when the download ends, or open Files › Downloads and tap pryvpn-0.1.25.91.68538.apk.

  4. Allow the install

    Android asks once: tap Settings, turn on “Allow from this source” for your browser and go back.

  5. Install

    Tap Install. If Android shows a security notice, tap “More details”, then “Install anyway”.

  6. Open and connect

    Tap Open, create your free account and tap Connect.

All install steps and checksums