Are you the one who uses VPN to connect to Windows 10? Then sometimes you might have got an error that doesn’t allow you to make an L2TP/IPsec connection with Windows 10. Getting this error has different reasons like incorrect username and password, invalid server name, the problem in server, and much more.
The reason for getting this error might be any, but there are few methods available by which you can solve this error. Many times you can just solve the error by checking the username, password, server, and if all are correct then it is solved. However, it is not the same for everyone, so check out the different ways to solve L2TP/IPsec VPN does not connect in your Windows 10 PC error.
Steps to Fix L2TP/IPsec VPN Not Connecting in Your Windows 10 PC
Method 1: Using Command Prompt
Follow the steps to solve the error by using the command prompt:
- Go to Start Menu and search for Command Prompt
- Do right click on the Command Prompt option and select Run as Administrator
- Open Command Prompt in elevated mode
- In the Command Prompt window, enter the command which is shown below in the image and then press enter:
After this, reboot your computer and check L2TP/IPsec VPN will be connected.
Method 2: Editing the Registry Editor
- Open Run Command on your PC by pressing Win + R keys together.
- In the search field type regedit and press OK to open the Registry Editor window
- In the Registry Editor Window, go to:
- Now, do right-click and click on DWORD (32-bit)
- Rename it as
- Now, double-click on
and open Edit DWORD (32-bit) value box
- Set the Value data to 2
- Now, copy the given path and paste it in Registry Editor address bar:
- Do right-click on an empty space and select New from the menu
- Then select DWORD (32-bit) Value.
- Rename the DWORd (32-bit) Value as ProhibitIpSec.
- Now, open the Edit DWORD (32-bit) Value dialogue box by doing a double-click on ProhibitIpSec.
- Set the Value data to 0.
- Click on OK and save the changes
Close everything and restart your PC. Now, your VPN should connect to your Windows 10 PC.
Method 3: Restart the IPsec service
- Click on Start Menu at the bottom left side of the screen
- Type in Services in the search box
- Open the Services window.
- In the Services window, go to Names, under that look for IPsec Policy Agent.
- Do right-click on it and click on Restart to start the service again
- As you have successfully restarted the service, now the VPN should connect to your Windows PC.
Method 4: Disable Xbox Live Networking Service
- Click on Windows search field and type Services
- Open the Services window
- In the Services window, go to Names, under that look for Xbox Live Networking Service
- Double click on the Xbox Live Networking option and in the Properties window, click on the General tab
- There disable the Startup type section
- Click on Apply and then OK and save changes.
Exit from the open window and reboot your PC to get connected to VPN.
Method 5: Update the Network Drivers
- Do right click on the Start menu and from the menu, tap on Device Manager
- In the Device Manager window, go to Network adapters and open it
- Right-click on TAP-Windows Adapter V9 and click on Update driver
- Click on Search automatically for updated driver software option and follow the given instructions
- The same process applies for WAN Miniport (L2TP) and WAN Miniport (Network Monitor).
Restart your PC and try to connect your VPN.
NOTE: If you get a message “The best drivers for your device are already installed“, then look for any latest driver in Windows Update and install it manually.
Method 6: Double-Check the Authentication Settings
- Open the Run Command by pressing the Win + R keys together.
- Type ncpa.cpl in the search box and press enter
- The network Connections window will open.
- Now, do right-click on your VPN and click on Properties.
- Go to the Security tab in the Properties window
- Here, check Type of VPN is set to Layer 2 Tunneling Protocol with IPsec (L2TP/IPsec).
- Select the Allow these protocols button
- Challenge Handshake Authentication Protocol (CHAP) and Microsoft CHAP Version 2 (MS-CHAP v2) both the options should be checked
- If these options are not selected, then select them and click on OK
Now, try to connect your VPN to Windows. If you are still getting an error then try out another method.
Method 7: Check the VPN Proxy Settings
- In the windows search bar type in VPN Settings
- Click on it and open the VPN settings window
- In the VPN settings window, select your VPN connection and then click on Advanced options.
- In the next window, scroll down and check if the VPN Proxy settings are correct or select None to remove the proxy.
- Click on Apply and save changes.
Now, you can try to connect your VPN with Windows PC.
Method 8: Open L2TP Ports in Firewall
- Go to Windows search and type Firewall
- Open Firewall & network protection
- Windows Defender Firewall with Advanced Security will be opened
- In the Windows Defender pane go to Inbound Rules
- Then click on Actions which is at the right side, under that click on New Rule
- The New Inbound Rule Wizard windows will open
- There select Port and click on Next
- In the Protocol and Ports window select UDP and then select Specific local ports filed and type 1701, 500, 4500
- In the Action window, select Allow the connection if it’s secure
- Click on Next option
- Keep pressing Next till you see the Name window
- Set a rule name and then click on Finish.
For Outbound Rules also, repeat the same process.
Now, try to connect the VPN with your Windows 10 PC.
- How To Delete Undeletable Files and Folders in Windows?
- How to Full Scan Your Windows 10 PC Using Microsoft Defender
- Download Windows 7 Games For Windows 10
- How to Enable Virtualization in Windows 10