guides / wireguard-windows.en
Installing WireGuard VPN on Windows
How to install the WireGuard VPN client on Windows, import the configuration and check the connection with the handshake and ping.
What you need
- Windows 11 or Windows 10 (see below).
- An administrator account. Without it you can neither install WireGuard nor activate the tunnel.
- The
.confconfiguration file from me (over Signal, by email only encrypted).
This guide installs the WireGuard VPN client on Windows, imports the configuration and checks that the VPN works.
.conf file contains your private VPN key. Treat it like a password. Do not forward it to anyone and do not store it on shared storage.Installation and connection
Step 1 Download WireGuard
- Open the official page wireguard.com/install.
- In the Windows section, click Download Windows Installer.
- Save the file
wireguard-installer.exeto your Downloads folder.
The installer downloads the current client version (now 1.1.1). Download only from wireguard.com. Fake installers from other sources can contain malware.
Alternative for advanced users: in Command Prompt, run winget install WireGuard.WireGuard.
Step 2 Install WireGuard
- In your Downloads folder, double-click
wireguard-installer.exe. - Windows shows the User Account Control dialog. Click Yes.
- The installation runs by itself in a few seconds.
- Then the WireGuard window opens. The WireGuard icon is in the notification area at the bottom right (possibly under the ^ arrow).
Step 3 Import the configuration
- In the WireGuard window, click Import tunnel(s) from file at the bottom left.
- Select the
.confconfiguration file and click Open. - The tunnel appears in the list on the left under the file name (e.g.
client-company).
After the import, store the .conf file in encrypted storage (e.g. the KeePass password manager). Delete it from Downloads and from the desktop.
Step 4 Activate the tunnel
- Select the tunnel in the list on the left.
- Click Activate.
- The window shows Status: Active.
To turn the tunnel off, click Deactivate.
Step 5 Handshake and ping
In the WireGuard window, check the active tunnel:
- Latest handshake: has a value. After activation or a ping it shows less than 2 minutes. Without traffic it does not renew.
- Transfer: received data greater than 0.
A handshake happens only when traffic flows. If it is empty right after activation, send the ping (next step) first and look again. Still no handshake? The tunnel has not reached the server. See Troubleshooting common problems.
Step 6 Check the connection with ping
- Press Win + R, type
cmdand press Enter. - Ping the VPN gateway (I will send you the IP address with the configuration):
ping 10.0.0.1Expected output:
Pinging 10.0.0.1 with 32 bytes of data:
Reply from 10.0.0.1: bytes=32 time=18ms TTL=64
Reply from 10.0.0.1: bytes=32 time=17ms TTL=64
Reply from 10.0.0.1: bytes=32 time=19ms TTL=64
Reply from 10.0.0.1: bytes=32 time=18ms TTL=64
Ping statistics for 10.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
0% loss means the VPN works. Some gateways do not answer ping. Then the handshake check in the previous step decides.
Do you have access to the company network? Also check a specific server, for example ping server.company.lan or its IP address.
- The window shows Status: Active and Latest handshake has a value.
- Ping to the VPN gateway has 0% loss.
After a Windows restart
A tunnel you leave active activates itself after a Windows restart. A deactivated tunnel stays off. No other setting is needed.
Full tunnel and kill-switch
Most configurations are a split tunnel: only the company networks go through the VPN, normal internet traffic goes directly. Your public IP address then does not change, and that is fine.
With a full tunnel, all traffic goes through the VPN (AllowedIPs = 0.0.0.0/0 in the configuration). Carrying IPv6 through the VPN also requires ::/0 and IPv6 support on the server. Otherwise, the kill-switch can block IPv6 traffic. I will prepare your configuration; do not edit it yourself. WireGuard then turns on the Block untunneled traffic (kill-switch) option.
- The kill-switch blocks all traffic outside the VPN on purpose. If the server does not respond, you have no internet at all.
- On hotel Wi-Fi, log in on the login page first. Only then activate the VPN.
To check a full tunnel, open ifconfig.me. The IP address shown must be the VPN server address, not your home address.
Troubleshooting common problems
No handshake, or ping returns “Request timed out”
- Check that the tunnel is Active.
- Check that the internet works without the VPN.
- The network (hotel or guest Wi-Fi) can block UDP port
51820(or the port in the configuration). Try another network, for example mobile data. - Check the system time. If the time is wrong, the server can reject the handshake.
- Deactivate the tunnel and activate it again.
WireGuard says “Failed to activate tunnel”
- If WireGuard requires administrator permissions or its window is unavailable under your account, contact me.
- Send me the content of the Log tab in the WireGuard window.
The VPN is active, but I have no internet
- Do you have a full tunnel with the kill-switch? The cause can be the server, DNS or routing. Deactivate the tunnel, and the internet comes back. Then write to me what Latest handshake shows.
- Are you on hotel Wi-Fi? Deactivate the tunnel, log in on the login page and activate the tunnel again.
Antivirus flags WireGuard as suspicious
- Check that you downloaded the installer from
wireguard.com. - Do not turn anything off and do not add exceptions. Write to me.
I lost the configuration file or the device
Security recommendations
Do you have a full tunnel? Always activate it on public Wi-Fi (cafés, hotels, airports). A split tunnel does not give this protection: normal internet traffic goes outside the VPN, directly over the public Wi-Fi.
If nothing helps, write to me: which computer, which Windows version, and a screenshot of the error.