Windows – L2TP/IPsec VPN fails to connect on Windows 10 – Works fine on iOS

iosipsecl2tpvpnwindows 10

I’ve configured an L2TP/ipsec server with a pre-shared key that works like a charm on my phone. I’ve tried several ways including disabling of firewall to connect on Windows 10 but it always fails. Here is the error it throws:

Error Windows L2TP VPN

How can I make it work?
• My phone and Windows 10 Laptop are on the same network.

Best Answer

For anyone else having issues, I was finally able to resolve the matter after making an edit in the registry and then rebooting. Thanks to the guide posted here at Github.

Run the following from an elevated command prompt:

REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d 0x2 /f

Also make sure, the following conditions are met: enter image description here

Related Question