VPN or Virtual Private Network provides an extra layer of anonymity to its users as it is tough to identify the real-time location when someone uses a VPN. But while working with a VPN, you may see an ‘Error Code-789’ with a remote access error message. No need to worry. Simply follow these easy fixes to solve your problem.
Workarounds to try initially-
1. If this is the first time this is happening, reboot your computer.
2. Disable or remove the antivirus software you are using on your computer.
Fix-1 Modify registry-
Modifying the registry on your computer may solve the problem.
But, before going ahead to the main process, we strongly suggest you create a backup of the registry on your computer. After opening Registry Editor, click on “File” > “Export” to create the backup.
If anything goes wrong you can retrieve your registry by simply importing the backup.
1. Click on the Search box and then type “regedit“.
2. Now, click on “Registry Editor” from the search results to open it on your computer.
3. In Registry Editor window, on the left-hand side, navigate to this location-
4. On the right-hand side, right-click on space and then click on “New>” and then click on “DWORD (32-bit) Value“.
5. Now, right-click on “New Value #1” and then click on “Rename“.
6. Set the name as “AssumeUDPEncapsulationContextOnSendRule“.
7. Now, double click on the “AssumeUDPEncapsulationContextOnSendRule” value to modify it.
8. Set the ‘Value data:‘ to “2“.
9. Then, click on “OK“.
Close the Registry Editor window.
Fix-2 Restart and automate necessary services-
Resetting the necessary services on your computer will solve the issue.
1. Press Windows key+R to open Run window.
2. In the Run window, type “services.msc” and then hit Enter.
3. In the Services window, scroll down and double click on the “IKE and AuthIP IPsec Keying Modules” service.
4. Now, click on “Start” to start the service.
5. Now, click on the drop-down menu and select “Automatic“.
6. Then click on “Apply” and click on “OK” to save this change.
7. Coming back to the Services window, scroll down to find the “IPSec Policy Agent” service.
8. Right-click on “IPSec Policy Agent” and then click on “Restart” to start the service.
8. Now, double click on the “IPSec Policy Agent” service to change its settings.
9. Now, click on the drop-down beside the ‘Startup type:‘ and then select “Automatic“.
10. If the service is yet to start, click on “Start” to start the service.
11. Then click on “Apply” and click on “OK” to save this change.
Close Services window.
Now, restart the VPN service. It should function normally.
Fix-3 Uninstall and reinstall network adapter-
Uninstalling and re-installing the adapter driver may solve the VPN issue on your computer.
1. Press Windows Key+R, to launch Run window.
2. Now, type “ncpa.cpl” and hit Enter.
Network Connections will open.
3. In the Network Connections window, note the network adapter your computer is using to connect to the internet.
(NOTE– For this computer, it is “150Mbps Wireless 802.11bgn Nano USB Adapter“, which you can notice just below the network name ‘Anonymous‘. )
4. Press Windows key+ R to open Run.
5. Now, type “devmgmt.msc” and hit Enter.
Device Manager utility will open.
6. In the Device Manager utility window, look for the “Network adapters” option and click on it to see available drivers.
7. Now, right-click on the network adapter you have noted before and then click on “Uninstall device“.
8. If a warning message appears, simply click on “Uninstall“.
The network adapter driver will be uninstalled from your computer.
In the next steps, we will re-install the network adapter driver on your computer-
Just reboot your computer and Windows will install the uninstalled driver itself. You will have your network adapter working fine again.
If rebooting your computer didn’t install the driver then you have to install the driver yourself. Follow these steps to install the driver manually-
1. Press Windows key+X together and then click on “Device Manager“.
2. In the Device Manager window, click on “Action” in the menu-bar.
3. Then, click on “Scan for hardware changes“.
This will find the uninstalled driver and install the driver again.
Try to use the VPN service again on your computer.
Fix-4 Reset the network-
If nothing has worked out for you, resetting the network is the only option left for you.
Resetting your network means all the network adapters will be uninstalled and reinstalled on your system. All the network settings (like WiFi settings, Ethernet settings, etc) will be reset to default. You will need to reinstall any other networking softwares like VPN clients on your computer.
1. Press Windows Key+I to open the Settings window.
2. Now, click on “Network and Internet“.
3. On the left-hand side, under Status, scroll down and click on “Network reset“.
4. Finally, click on “Reset now” to reset the internet connection.
5. Now, again click on “Yes” to finalize the reset.
Your computer will be restarted to finalize the resetting process.
After restarting your computer, install the VPN service and check it is working or not.
Sambit is a Mechanical Engineer By qualification who loves to write about Windows 10 and solutions to weirdest possible problems.