Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The local computer (comp 1) is connected to a remote computer (comp 2) with Remote Desktop. On the remote computer (comp 2), I try to establish an VPN connection to a different remote computer (comp 3). Once I try to establish the VPN connection from the remote computer (comp 2) to the second remote computer (comp 3), Remote Desktop freezes on comp 1. It is not possible to connect to comp 2 again via Remote Desktop.

What can be done to connect to this remote computer (comp 2) after it establishes a VPN connection?

The only thing that comes to my mind is to install a second NIC and configure Remote Desktop to accept connection from this NIC while VPN is working from the other...

What do you suggest?

EDIT:

I want to use the internet connection of the VPN, so all traffic should go over the VPN but still RDP working.

My IP: 100.0.0.1
The IP where I'm connecting via RDP: 200.0.0.20 (Mask: 255.255.255.192, Gateway: 200.0.0.193)
Where the 200.0.0.1 connects to VPN the IP of the VPN is: 65.254.61.250

Will routing like this help (Command is issued in 200.0.0.20, the RDP location):
route ADD 65.254.61.250 MASK 255.255.255.192 200.0.0.193

Couldn't add gives the error: The route addition failed: The parameter is incorrect.
I tried before connecting to VPN.
share|improve this question

migrated from stackoverflow.com Jun 22 '11 at 0:00

This question came from our site for professional and enthusiast programmers.

2 Answers 2

Are you using the same IP address for the VPN and the remote desktop? If not, are you using the default gateway on the remote network? If so, does the remote router support NAT loopback? If not, then your packets won't be routeable after you establish the VPN.

EDIT: Sorry, I misunderstood the question.

If your VPN is set up to use the default gateway on the remote network, then you will normally need to VPN to the remote network yourself and re-establish the remote desktop. But you can work around this by adding a static route back to you from the remote PC which should override the VPN default route.

For instance, if your public IP address is 1.2.3.4 and the remote desktop's default gateway is 5.6.7.8 then you would use

route add 1.2.3.4 gateway 5.6.7.8

Then when you connect the VPN the remote desktop still knows how to route packets back to you.

share|improve this answer
    
ME->Remote Computer->VPN Computer, Remote Computer which i connect by remote desktop and VPN Computer which the Remote Computer connects have different IPs. The rest of the questions i couldn't understand good. The remote computer's TCP/IP settings have an IP set as a gateway. Should i change VPN's TCP/IP settings to default? –  Samet Sorgut Jun 21 '11 at 23:44

You really are not giving a lot of information. You should put things like networks (192.168.1.x, for example), and what VPN client you are using.

If you are using the Microsoft VPN client, I would try just unchecking the box: "Use default gateway on remote network" as in the image:

enter image description here

share|improve this answer
    
When i uncheck the option "Use default gateway on remote network" the status of the connection is showing "No Internet Connection". When I enable it the internet connection over VPN is possible. –  Samet Sorgut Jun 22 '11 at 1:11
    
what if i install some dynamic dns software and when vpn connects, get the new ip and try RDP to that ip? i'm trying free trial vpn from worldvpn.net/vpn-service/free-trial before purchase. i think it's not possible because it is a shared vpn ip and how it will route it back to my remote computer... –  Samet Sorgut Jun 22 '11 at 1:27
    
Thank you for your patience. I edited with more info :) –  Samet Sorgut Jun 22 '11 at 1:56
    
@Samet Sorgut After our remote session, and understanding the problem, I re-wrote the beginning to better describe it. I think you were on the right track with the route add statement, but you need to know the remote network IP to add that. The routable address does not count. –  KCotreau Jun 23 '11 at 15:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.