Barry Tech Review

Best review technology by Barry

L2TP / IPsec VPN Does Not Connect in Windows 10

FIX: L2TP / IPsec VPN Does Not Connect in Windows 10

FIX: L2TP / IPsec VPN Does Not Connect in Windows 10

Are you the one who uses VPN on Windows 10? Then sometimes, you might have an error that doesn’t allow you to make an L2TP/IPsec connection with Windows 10. This error has different reasons like incorrect username and password, invalid server name, a problem in the server, and much more.

The reason for getting this error might be any, but there are a few methods available by which you can solve this error. You can often solve the error by checking the username, password, and server; if all are correct, then it is solved. However, it is not the same for everyone, so check out the best ways to fix L2TP/IPsec VPN does not connect on Windows 10 PC error.

Fix L2TP/IPsec VPN Not Connecting in Your Windows 10

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.

2. Editing the Registry Editor

  1. Open Run Command on your PC by pressing the Windows + 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:

    Registry editor

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

    Rename DWORD value

  6. Now, double-click on

    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 the Registry Editor address bar:
  9. Do right-click on an empty space and select New from the menu
  10. Then select DWORD (32-bit) Value.
  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


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

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.
  4. In the Services window, go to Names, and 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.

4. Disable Xbox Live Networking Service

  1. Click on the Windows search field and type Services
  2. Open the Services window
  3. In the Services window, go to Names, under that, look for Xbox Live Networking Service
  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.


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

Now, try to connect your VPN to Windows. If you are still getting an error, then try out another 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. Select your VPN connection in the VPN settings window and 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.

8. Open L2TP Ports in Firewall

  1. Go to Windows search and type Firewall, and hit enter.
  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 on 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 the 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 to your Windows 10 PC.

Leave a Reply

Your email address will not be published. Required fields are marked *