Wireguard doesn't connect in Windows 11 24H2
Microsoft pushed an update in Windows 11 24H2 that breaks out-of-box functionality of the wireguard VPN.
This will typically manifest itself in Wireguard repeatedly sending the handshake initiation.
There are two potential fixes:
1. Enable Virtualization Technology - Make sure wireguard is disabled, as it can interfere with internet connectivity.
- Open start menu, and then type "Windows Features", then select the option for "Turn Windows features on or off".
- Scroll down and select "Virtual Machine Platform"
- Click OK
- Download features if prompted
- Reboot.
- Attempt connection
2. Edit the Wireguard configuration
- Open Wireguard
- Select the connection experiencing issues.
- Change the line for "AllowedIPs" to the following "AllowedIPs = 0.0.0.0/0"
- Click save.
- Attempt connection
If all else fails, try rebooting the device hosting the wireguard server. This could be a VM, appliance such as a UniFi Dream Machine, or something similar.