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:

  1. Go to Start Menu and search for Command Prompt
  2. Do right click on the Command Prompt option and select Run as Administrator
    Run as administrator
  3. Open Command Prompt in elevated mode
  4. In the Command Prompt window, enter the command which is shown below in the image and then press enter:

Command Prompt Admin

After this, reboot your computer and check L2TP/IPsec VPN will be connected.

Method 2: Editing the Registry Editor

  1. Open Run Command on your PC by pressing Win + R keys together.
  2. In the search field type regedit and press OK to open the Registry Editor window
    run command
  3. In the Registry Editor Window, go to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent

    Registry editor

  4. Now, do right-click and click on DWORD (32-bit)
  5. Rename it as
    AssumeUDPEncapsulationContextOnSendRule

    Rename DWORD value

  6. Now, double-click on
    AssumeUDPEncapsulationContextOnSendRule 

    and open Edit DWORD (32-bit) value box

  7. Set the Value data to 2
    Edit Dword
  8. Now, copy the given path and paste it in Registry Editor address bar:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan
  9. Do right-click on an empty space and select New from the menu
  10. Then select DWORD (32-bit) Value.
    Registory
  11. Rename the DWORd (32-bit) Value as ProhibitIpSec.
    Rename DWORD
  12. Now, open the Edit DWORD (32-bit) Value dialogue box by doing a double-click on ProhibitIpSec.
  13. Set the Value data to 0.
  14. Click on  OK and save the changes

Edit DWORD

Close everything and restart your PC. Now, your VPN should connect to your Windows 10 PC.

Method 3: Restart the IPsec service

  1. Click on Start Menu at the bottom left side of the screen
  2. Type in Services in the search box
  3. Open the Services window.
    Services
  4. In the Services window, go to Names, under that look for IPsec Policy Agent.
  5. Do right-click on it and click on Restart to start the service again
    IPSec policy
  6. As you have successfully restarted the service, now the VPN should connect to your Windows PC.

Method 4: Disable Xbox Live Networking Service

  1. Click on Windows search field and type Services
  2. Open the Services window
    Services
  3. In the Services window, go to Names, under that look for Xbox Live Networking Service
    Services
  4. Double click on the Xbox Live Networking option and in the Properties window, click on the General tab
  5. There disable the Startup type section
  6. Click on Apply and then OK and save changes.

Properties

Exit from the open window and reboot your PC to get connected to VPN.

Method 5: Update the Network Drivers

  1. Do right click on the Start menu and from the menu, tap on Device Manager
    Device manager
  2. In the Device Manager window, go to Network adapters and open it
  3. Right-click on TAP-Windows Adapter V9 and click on Update driver
  4. Click on Search automatically for updated driver software option and follow the given instructions
  5. The same process applies for WAN Miniport (L2TP) and WAN Miniport (Network Monitor).

WAN Miniport

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

  1. Open the Run Command by pressing the Win + R keys together.
  2. Type ncpa.cpl in the search box and press enter
    Authentication setting
  3. The network Connections window will open.
  4. Now, do right-click on your VPN and click on Properties.
    Network Connection
  5. Go to the Security tab in the Properties window
  6. Here, check Type of VPN is set to Layer 2 Tunneling Protocol with IPsec (L2TP/IPsec).
  7. Select the Allow these protocols button
  8. Challenge Handshake Authentication Protocol (CHAP) and Microsoft CHAP Version 2 (MS-CHAP v2) both the options should be checked
    VPN Properties
  9. 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

  1. In the windows search bar type in VPN Settings
  2. Click on it and open the VPN settings window
    open VPN settings
  3. In the VPN settings window, select your VPN connection and then click on Advanced options.
    VPN Settings
  4. In the next window, scroll down and check if the VPN Proxy settings are correct or select None to remove the proxy.
  5. Click on Apply and save changes.

VPN Proxy settings

Now, you can try to connect your VPN with Windows PC.

Method 8: Open L2TP Ports in Firewall

  1. Go to Windows search and type Firewall
  2. Open Firewall & network protection
  3. Windows Defender Firewall with Advanced Security will be opened
    Firewall & network protection
  4. In the Windows Defender pane go to Inbound Rules
  5. Then click on Actions which is at the right side, under that click on New Rule
    Windows Defender Firewall
  6. The New Inbound Rule Wizard windows will open
  7. There select Port and click on Next
    Inbound rule wizard
  8. In the Protocol and Ports window select UDP and then select Specific local ports filed and type 1701, 500, 4500
    Protocol and Ports
  9. In the Action window, select Allow the connection if it’s secure 
  10. Click on Next option
    Action allow the connection
  11. Keep pressing Next till you see the Name window
  12. Set a rule name and then click on Finish.

Set a rule name

For Outbound Rules also, repeat the same process.

Now, try to connect the VPN with your Windows 10 PC.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here