Easily Fix VPN error 631 on Windows 10 and 11

Reading time icon 7 min. read


Readers help support VPNCentral. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help VPNCentral sustain the editorial team Read more

vpn error 631

The error code 631 is a network-related problem found on Windows operating systems. Many users may see this code while using a VPN connection.

Usually, when users try connecting to a specific VPN connection, they may encounter this problem. But, users also may get disconnected from an active connection and get the error code 631.

Fixing this problem is the same for both cases. Before troubleshooting any VPN errors, you should identify the root of the problem. After that, it will be easier to apply the necessary methods to solve these problems.

Why may you get VPN error 631 on Windows 11 or 10?

Usually, the VPN error 631 happens only with the built-in Windows VPN connection. There are several reasons behind this problem.

The error code 631 means the port has been disconnected or blocked by anyone or any security software.

At first, you may think that the error may be from the third party’s end. But, that might not be the case. The root of the error may be on your PC.

In our research, we have found that the reason code returned on termination is 631 is that you have one of the following issues:

  • Wrong credentials
  • The firewall on your PC is interrupting the connection
  • Your original internet connection is problematic
  • The remote server configuration may have some problems
  • Corrupted system components
  • Any internal error on your PC

You can get rid of this error anytime by following some effective methods.

Quick Tip:

If you keep having problems with the Windows built-in VPN, using a dedicated VPN client may be a better idea. Good VPNs have native apps for all major operating systems, including Windows.

If you use a dedicated VPN client, you will no longer face problems like error 631. For this, Private Internet Access is the best choice as it provides a lot of features with excellent performance.

Private Internet Access

Private Internet Access

Get more features and access to the biggest VPN server network in the world!
Check price Visit website

How can I fix VPN error 631 on Windows?

1. Disable firewall/antivirus

  1. Open Start Menu.
  2. Type Control Panel and press enter.Windows control panel
  3. Click on System & Security.Clicking on System & Security
  4. Go to Windows Defender Firewall.Clicking on Windows Defender
  5. Click on Windows Defender Firewall on or off.Click: Windows Defender Firewall On or Off
  6. Next, check Turn off Windows Defender Firewall for both public and private networks.Turn off Windows Defender Firewall
  7. Click on OK to save the changes.

If you have been using any third-party security software like ESET Internet Security, the above options may be grayed out. In this case, disable the firewall from your antivirus and then disable the Windows Defender firewall.

2. Update network/modem driver

  1. Open the Start Menu.
  2. Type device manager and hit enter to open Windows Device Manager.Windows 11 device manager
  3. Expand Network Adapters.Expand Network Adpater in Device Manager
  4. Right-click on your network driver and choose Update Driver.Choose Update Driver in Windows Device Manager
  5. Click on Search Automatically for drivers.Search Automatically for Drivers
  6. Now, Windows will try to find the latest driver and install it automatically.

3. Use the troubleshooter

3.1 Troubleshoot Internet connections

  1. Press Win+I to open Windows settings.
  2. Go to the System tab if not opened by default and then click on Troubleshoot.opening troubleshooter Windows 11 settings
  3. Go to Other troubleshooters.opening other troubleshooters win11 settings
  4. Click on Run next to the Internet Connections.opening internet troubleshooter
  5. In a popup Window, choose Troubleshoot my connection to the Internet.troubleshoot my internet connection
  6. It will find and fix the problems. If if it asks for your permission, grant it.

3.2 Troubleshoot the network adapter

  1. Open Troubleshoot in Windows settings like before.
  2. Then, Go to Other troubleshooters as shown above.
  3. Find and click on Run Next to the Network Adapter.opening network adapter troubleshooter
  4. Select All network adapters.troubleshoot all network adapters
  5. Click on Next.clicking next troubleshooting all network adapters

4. Make sure the internet connection is stable

As the Windows VPN error 631 means the connection has been disconnected either by the server or by the user, you should make sure you have a stable internet connection. Because, If your original internet connection often gets disconnected, you will always face VPN errors.

5. Check from another network

Connect your computer to another internet connection before connecting to the problematic VPN. If there is something wrong with your current ISP or IP with the VPN server, it will help to identify it. In this case, you may need to contact your ISP.

6. Change the protocol

  1. Press Win + I to open settings like before.
  2. Go to Network & Internet.going network internet win11 settings
  3. Click on VPN.going to VPN settings win11
  4. Expand the problematic VPN by clicking on the dropdown icon and then click on Advanced options.going advanced vpn options win11 settings
  5. Click on Edit next to the Connection properties.click edit vpn config win11 settings
  6. Click on the dropdown options under VPN type and choose an appropriate protocol.saving vpn config protocol win11 settings
  7. Save the settings.

Now, try to connect to the VPN again. You should not face error 631 again.

7. Repair corrupted system files

7.1 Run SFC Command

  1. Open Start Menu and type cmd.
  2. Right-click on the command prompt and choose Run as Administrator.Windows 11 cmd
  3. Type the following command and hit enter. SFC/ Scannowsfc scannow

7.2 Run the DISM command

  1. Open Command Prompt as admin like before.
  2. Type the following command and hit enter. DISM /Online /Cleanup-Image /RestoreHealth dism command

8. Configure the settings inside the VPN server

If it is not a third-party VPN service and you have control over the VPN server, this method is for you. A lot of users faced a similar problem and were able to fix VPN error 631 by tweaking certain things in the configuration. Based on that, you can do the following things.

  • Make sure more than one connection is allowed in the firewall.
  • Change the VPN protocol to a more common one.
  • Whitelist your IP.

After making these changes, pick the appropriate VPN Protocol while configuring the VPN in your PC.

9. Restore Windows

  1. Open Start Menu and type system restore.
  2. Click on Create a restore point.Windows system restore
  3. Under the System Protection tab and System Restore section, click on the System Restore button.Windows system properties
  4. Click on Next.Windows system restore clicking next
  5. Choose a date when you were not facing VPN error 631.
  6. Click on Next.Windows system restore next
  7. Then, Click on Finish.Windows system restore clicking finish

It may take a while to complete the system restore. But, You should take a backup of your necessary files as you may have some of your files or software loaded after the restore date.

How can you avoid error 631 in the future?

To avoid Windows VPN errors like 631, we suggest you take some steps to keep your PC’s health in a good state. But, It is not always possible as you use a lot of essential software and tools, and any of them may create some conflicts and corrupt some system components. It is not very unusual.

But, Using a dedicated VPN client is the best idea because it doesn’t show any of these errors that Windows built-in VPN client does. Also, According to our research, we have found a few of the third-party VPN servers don’t work well with the built-in VPN settings of Windows.

In these cases, you may need to change the VPN service you are using. But, there is no guarantee that it will always protect you from facing the errors like 631.

Also, make sure your PC is not infected with viruses because Any unusual behavior from your PC may automatically make the remote VPN server disconnect you.

After considering these things, we can say that if you don’t have a custom VPN server at your home, office, or anywhere, you should use the VPN software provided by your VPN service provider.

The methods mentioned above will help to get rid of Windows VPN error 631. However, if you know any other techniques that may help, you can share them in the comment box.