- VPN error 789 appears when a Windows 10 system isn't configured properly and it is connected to a VPN using the L2TP protocol.
- This error can be fixed with a quick network adapter reset from Device Manager.
- IPSec configuration should be changed as well as a fallback solution so tweak the services as shown in our guide.
- You should also consider changing your virtual private network less prone to errors.
If you’re using a VPN, you can get prompted with the Windows 10 VPN error 789 that states the following message:
The L2TP connection attempt failed because the security layer encountered a processing error during initial negotiations with the remote computer
This error pops up when your system is not properly set up to connect to an L2TP server, thus the connection attempt fails even before you establish a connection with the server.
It is also linked to the incorrect configuration of your operating system like Windows 10 in this case. This generic error is thrown when the IPSec negotiation fails for the L2TP/IPSec connections.
Other possible causes include:
- L2TP based VPN client (or VPN server) is behind NAT
- Wrong certificate or pre-shared key is set on the VPN server or client
- A machine certificate or trusted root machine certificate is not present on the VPN server
- Machine Certificate on VPN Server does not have Server Authentication as the EKU
Before trying any of these solutions, ensure that L2TP and IPSec pass-through options are enabled from your router.
If you configured your VPN service manually, then make sure you use the preshared key 12345678. Here are solutions you can use to fix Windows 10 VPN error 789 on your computer.
Since you have already encountered errors with your previous service, you will probably be looking for one that is stable and secure and has no compatibility issues with Windows 10.
The tool recommended below meets those criteria, allowing fast and secure connectivity from anywhere at any time.
This VPN service is owned and developed by Kape Technologies, and it boasts 25,224 servers in 77 different countries.
Private Internet Access
Take advantage of Private Internet Access’s incredibly stable and lightweight client, now at a discount price!
How do I fix Windows 10 VPN error 789?
1. Reset network adapter
- Right-click Start and select Device Manager.
- Identify your network adapter and right-click on it then select Uninstall device.
- Click OK.
- Restart your computer. The device will reinstall and should reset it to default settings.
Refreshing the network adapter driver can make this problem go away quickly so make sure you try it out by performing the steps above.
2. Check the certificate
It is very important to ensure the correct certificate is used both on the client and the server-side.
In case that the two don’t match, you won’t be able to use the virtual private network. You might need to renew the certificate with your provider.
If you are using a Pre Shared Key (PSK), ensure that the same PSK is configured on the client-side, and the VPN server machine.
3. Re-enable IPSec on your computer
- Press the Windows key + R keyboard shortcut to start Run.
- Type services.msc and press Enter or click OK.
- Find the IKE and AuthIP IPSec Keying Modules service.
- Find IPSec Policy Agent.
- Check the status for both services. If it says started click to restart. If the started option is disabled, enable it
- Double click on each of the two.
- Select Startup type.
- Change it to Automatic.
- Save the changes.
- Restart your VPN service.
Once you have done all the steps above carefully, the VPN should work smoothly as the protocol settings have been reset to default.
If, however, it doesn’t work, you have to manually set the encryption method both for the server and the client-side, in order for them to be compatible.
In case you have a user-specific issue on your computer yet you still get the L2TP connection attempt failed error, you can also contact the customer care or tech support team for your specific VPN provider.
Of course, you can also change your software completely. Just check our list comprising the best VPNs for Windows 10 and pick the one that suits your needs.
Do let us know if any of these solutions fixed the Windows 10 VPN error 789 by leaving a comment in the section below.
Your connection is not secure - websites you visit can find out your details:
- Your IP Address:
Companies can sell this information, alongside your location and internet provider name, and profit from it by serving targeted ads or monitoring your data usage.
We recommend Private Internet Access, a VPN with a no-log policy, open source code, ad blocking and much more; now 79% off.
Frequently Asked Questions
The ports you need to open are 500 and 4500 for UDP. Check out the complete guide on unblocking L2TP for other ports and more.
L2TP stands for Layer 2 Tunneling Protocol and is considered better than PPTP. It secures the traffic passing by it in an IPsec tunnel. If you have issues with it, we have an excellent guide on how to fix L2TP problems.
By resetting the network adapter or setting the firewall to allow traffic through port 500. More details in this excellent guide.