WireGuard · 7 min read

WireGuard Setup Guide: Connecting in Under 5 Minutes

WireGuard has become the standard modern VPN protocol, replacing older options like OpenVPN and IPsec for most consumer use cases. It's simpler, faster, and has a much smaller codebase that's easier to audit for security issues. Here's how to get connected, whatever device you're on.

Why WireGuard instead of older protocols

Older VPN protocols like OpenVPN carry decades of accumulated configuration options and legacy code. WireGuard was built from scratch with a deliberately minimal design — its entire codebase is a small fraction of the size, which means fewer places for bugs or vulnerabilities to hide. It's also noticeably faster to establish a connection and generally delivers better throughput on the same hardware.

Step-by-step: connecting on desktop

  1. Install the official WireGuard app for your operating system.
  2. Get your configuration from your VPN provider's dashboard — usually as a downloadable .conf file.
  3. Open WireGuard and choose "Import tunnel(s) from file," then select the .conf file.
  4. Click "Activate" to bring the tunnel up. You should see a small amount of handshake data exchanged within a few seconds.
  5. Confirm the connection worked by checking your public IP address on any "what's my IP" page — it should now show your VPN exit location.

Step-by-step: connecting on mobile

  1. Install the WireGuard app from the App Store or Google Play.
  2. Tap the "+" button and choose "Scan from QR code."
  3. Scan the QR code shown in your provider's dashboard — this is faster than transferring a file to your phone manually.
  4. Toggle the tunnel on from the app's main screen.

What a kill switch actually does

A kill switch blocks all internet traffic if your VPN connection drops unexpectedly, so your real IP address is never briefly exposed during a reconnect. WireGuard itself doesn't include a dedicated kill-switch toggle, but you can achieve the same effect with firewall rules that only allow traffic through the WireGuard interface — most WireGuard apps expose this as an "always-on" or "block untunneled traffic" option in settings. It's worth turning on if you're using the VPN somewhere the exposure would actually matter, like public Wi-Fi.

What split tunneling does

Split tunneling lets you choose which apps route through the VPN and which use your normal connection directly. This is useful if, for example, you want your browser traffic tunneled but don't want to route bandwidth-heavy local network devices (like a smart TV on the same network) through the VPN unnecessarily. Support for this varies by platform — check your WireGuard app's settings for a per-app or per-IP-range routing option.

Troubleshooting a connection that won't establish

Related articles

Get your WireGuard config in minutes

Get VPN4All →