Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

[Windows]How to keep RDP connection while accessing VPN

GiedriusGiedrius Administrator
edited January 2021 in Windows VPS

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):

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

  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 MASK if 5

This command explanation below: - Is the IP you use to connect to RDP, basically your server IP. - net mask - no need to change - 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.



  • Hi,
    I can't get it.
    I changed it to route ADD 62.77.*. MASK if 3.

  • GiedriusGiedrius Administrator

    Hello @minbo,

    I would like to suggest you to contact our support department so that your case could be rechecked individually. We might want to ask you for a few details of the server.

  • Hey Giedrius,

    Thanks for your reply.

Sign In or Register to comment.

Learn how to install a web and database server, email, FTP client or other applications. Discover and share information on server security or optimization recommendations.
Feel free to join our constantly expanding community, participate in discussions, strengthen your knowledge on Linux and Windows server management!
© 2013 - 2023 Time4VPS. All rights reserved.

Get In Touch