Jump to content

How to keep RDP connection while accessing VPN


Chris Luke

Recommended Posts

The article explains how not to lose RDP connection when/if you want to access to VPN from your Windows VPS servers.

For quite some time the Windows VPS had the issue. When you connected to VPN from Windows VPS, you suddenly lose the RDP connection, this situation could be solved by performing the following steps:

  1. First, check your Public IP, you can find it here(under "Your IP Address" line): https://lg.lcwhost.net/speedtest/

  2. Open your command line(cmd) as Administrator and enter the following command: route print
    You should be seeing a similar view:

itrdyit6m4on.png

  1. Using the previous command, you need to find the line VirtuozzoVirtIO Ethernet Adapter ID, which is 5, in this example.

  2. We need to add a new route that connects RDP to your public IP directly, it can be done with this command:

route ADD 9.9.9.9 MASK 255.255.255.255 169.254.0.1 if 5

This command explanation below:

9.9.9.9 - Is the IP you use to connect to RDP, basically your server IP.
255.255.255.255 - net mask - no need to change
169.254.0.1 - link-local interface IP - no need to change.
5 - VIrtuozzoVirtIO interfaco ID - we have found the ID in the 2nd and 3rd steps of this tutorial.

Note. In order to keep the command permanent, which means, to keep it active after reboot, you need to add the argument - p

This option sets your specific IP, not to lose access if you connect to VPN. If you have a dynamic IP, this method won't work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...