How to make Windows 10/11 connect to L2TP VPN (reg fix)
- After creating a VPN connection using the L2TP protocol, you might receive error code 809 when trying to connect to the remote host due to NAT issues.
- Windows 10 can connect to L2TP VPN using a reg hack. There are two ways to do it: through Registry Editor or Command Prompt. We listed the instructions for both.
- Join our Windows 10 area to discover the best ways to use Microsoft's OS.
- Bookmark our VPN Troubleshooting Hub to fix more VPN errors.
Create a registry backup
- Press Ctrl + R, type regedit, press Enter.
- If prompted by UAC (User Account Control), click Yes.
- Click inside the address bar and paste the following:
ComputerHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesPolicyAgent
- Open the File menu and click Export.
- Save the registration file in a safe place.
How do I fix L2TP VPN connection issues in Windows 10?
Using the Registry Editor GUI
- Launch Registry Editor with admin rights.
- Go to:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesPolicyAgent
- Open the Edit menu > New submenu and click DWORD (32-bit) Value.
- Paste AssumeUDPEncapsulationContextOnSendRule as the value name.
- Right-click AssumeUDPEncapsulationContextOnSendRule and choose Modify.
- At Value data, type 2.
- Set Base to Hexadecimal.
- Click OK.
- Go to:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesRasMan
- Open the Edit menu > New submenu and click DWORD (32-bit) Value.
- Paste ProhibitIpSec as the value name.
- Right-click ProhibitIpSec and choose Modify.
- At Value data, type 0.
- Set Base to Hexadecimal.
- Click OK.
- Restart your PC.
If you can’t access the registry, check out our quick fixes. Or you can make Windows 10 connect to L2tT VPN using CMD instead of reg.
Using CMD
- Launch Command Prompt as admin.
- Paste the following:
REG ADD HKLMSYSTEMCurrentControlSetServicesPolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d 0x2 /f
- Once the operation completes successfully, also paste:
REG ADD HKLMSYSTEMCurrentControlSetServicesRasManParameters /v ProhibitIpSec /t REG_DWORD /d 0x0 /f
- Restart your PC.
Master the Command Prompt to get the best out of Windows 10 by joining our CMD Hub.
In conclusion, if Windows 10 can’t complete your L2TP VPN connection due to NAT issues, use the reg hack above to quickly fix your problem.
The first solution is suitable for casual users who prefer using the graphical interface. However, the second solution is faster for advanced users who are accustomed to the command-line interface.
The point is that both methods deliver the same results, and you should be able to connect to the VPN as soon as you reboot your PC. For instance, you can use a VPN to watch ITV Hub.