sealedvpn

Home / VPN guides / WireGuard Handshake Did Not Complete? Diagnose the Cause

WireGuard Handshake Did Not Complete? Diagnose the Cause

Short answer: a WireGuard “handshake did not complete” warning means the peers have not successfully established a current cryptographic session. Start by checking whether the intended peer can be reached over UDP and whether both ends have the correct peer information. Do not assume a DNS leak, slow internet, or a broken encryption algorithm. Those are different diagnoses.

Choose your path: If you use a commercial VPN app, check its service status and support instructions before editing anything. If you administer your own WireGuard tunnel, follow the ordered checks below. Never post a private key or complete configuration file in a forum.

First distinguish a failed handshake from failed traffic

On a self-managed Linux installation, sudo wg show displays configured peers, transfer counters and, where applicable, the latest handshake. The official WireGuard quick start documents this command. In a desktop or mobile client, look for the app’s latest-handshake, connected-peer or log information; labels vary between clients.

  • No recent handshake and only outbound attempts: the peer may be unreachable, the endpoint or UDP port may be wrong, or the far side may reject the peer identity.
  • A recent handshake but no usable internet: focus on routes, AllowedIPs, DNS, NAT/forwarding and endpoint policy instead. A successful handshake by itself does not prove that every application is routed through the tunnel.
  • A handshake succeeds but large pages or downloads hang: check ordinary connectivity, routes and DNS first; then use our WireGuard MTU troubleshooting guide to assess packet-size problems without guessing a universal MTU value.
  • A handshake that works briefly and then disappears: compare network changes, Wi-Fi/cellular transitions, idle NAT mappings and whether the peer is actually sending traffic.

Do not draw conclusions from an old timestamp alone: as WireGuard’s protocol explanation notes, it is intentionally quiet when idle and manages rekeying automatically.

1. Check the endpoint, network and UDP path

Confirm that the client profile’s Endpoint hostname or IP and port match the current server. DNS names can become stale, public IP addresses change, and an administrator can move a service to another port. If a domain is used, check whether it resolves on the affected network. A hostname resolving successfully does not prove that the UDP service is reachable.

For self-hosted WireGuard, verify the tunnel is running and that the actual configured UDP listen port is permitted by the server firewall and any upstream router. Port 51820/UDP is a common example, not a mandatory WireGuard port. If your server is behind NAT, confirm the intended UDP port forward points to the correct host and that the ISP or upstream gateway permits inbound traffic. Avoid broadly disabling firewalls just to see whether a tunnel starts.

If you are authorized to test on another network, compare home Wi-Fi with a mobile hotspot. A tunnel that works on the hotspot but not office Wi-Fi suggests a network-specific restriction, not necessarily a bad key. WireGuard itself does not implement a native TCP transport or disguise its packets as HTTPS; see its documented limitations. Respect workplace and school network policies.

2. Verify public keys and peer identity—without exposing secrets

Each peer has its own private key and corresponding public key. The server must recognize the client’s public key, and the client must have the server’s correct public key. A profile copied from another device, an outdated server key after a rebuild, or a mistyped peer entry can prevent an expected handshake. Never send your private key to a website or support forum; share only redacted logs and the minimal details your administrator requests.

For managed VPN apps, a provider may generate and rotate the needed configuration automatically. Re-download an official supported profile or sign in again only according to that provider’s documentation; do not paste arbitrary keys or disable verification.

3. Check address and route expectations

AllowedIPs has two important roles in WireGuard: it selects destinations routed toward a peer and defines which tunnel source addresses are acceptable from that peer. A typical remote-access client may use 0.0.0.0/0 for an IPv4 full tunnel, while a split-tunnel configuration uses only the private subnets intended for access. IPv6 routes, where relevant, must also be considered separately. Do not paste a full-tunnel route into a work or production profile without understanding its effect.

On a self-hosted server, a missing client tunnel address in its peer configuration may make data unusable even if some part of connectivity looks successful. Overlapping local subnets, conflicting routes and missing IP forwarding/NAT can also break application traffic after a handshake. For a clearer separation of routing versus connection symptoms, see our VPN connected but no internet guide and DNS leak troubleshooting guide.

4. Decide whether PersistentKeepalive is warranted

Idle-only failure? Our WireGuard PersistentKeepalive guide explains when a 25-second interval may preserve a NAT mapping, when the default off setting is preferable, and what to check before changing a peer profile.

WireGuard normally sends packets only when needed. If a peer sits behind NAT and must remain reachable during idle periods, PersistentKeepalive can help maintain a network mapping. The WireGuard quick start describes 25 seconds as a broadly useful interval in those particular circumstances. It is not a universal fix for wrong keys, a blocked UDP port or a missing server.

Do not add a persistent keepalive reflexively: WireGuard’s default is to leave it off when unnecessary. If you are not the tunnel administrator, follow your VPN provider’s current recommended configuration instead.

What the pattern tells you

Observed symptom More useful next check What it does not prove
No handshake on any network Server status, endpoint/port, peer public keys That WireGuard is globally down
Works on hotspot, not office Wi-Fi Authorized network-specific UDP policy That the server key is wrong
Handshake succeeds; websites fail Routes, DNS, NAT, forwarding, IPv6 handling That the handshake failed
Connection stops after idling NAT mappings and appropriate keepalive settings That enabling keepalive always fixes it

When to stop troubleshooting and contact support

If the server belongs to an employer, university or VPN provider, report the approximate time, app/device and network type, the sanitized warning, and whether a second authorized network behaves differently. Do not send secrets, personal browsing history or a full configuration file. A commercial VPN service might use its own app diagnostics and different connection protocols; follow its official advice first.

Once traffic is restored, check the public IP, DNS and any relevant IPv6 behavior before assuming your intended traffic is protected. Our VPN verification checklist explains how to interpret these checks.

Technical sources and editorial method

Reviewed 22 October 2026. This educational guide was drafted with AI assistance and checked against the linked primary technical sources. SealedVPN is an independent information website, not a VPN operator. We did not run device tests, packet captures, provider benchmarks or security audits; your network and VPN configuration may differ. Our editorial policy explains our approach.

General information based on the sources linked above. Settings, prices and terms change, so confirm them with your provider or device maker. Found an error? Tell us.

Keep reading

All vpn guides guides