Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VNC over VPN (3 computers)

Posted on 2011-03-10
11
Medium Priority
?
804 Views
Last Modified: 2013-11-30
Hi,

I'm trying to set up VNC through a VPN connection.

I have three computers.
Computer A, Computer B, and Computer C.

Computer A will connect to Computer B through a VPN and through the VPN connection will VNC with Computer C.

Computer A is not on the same network.
Computer B shares a connection with Computer C. (will act itself as the tunnel from A->C)
Computer C will be remotely controlled by Computer A.

Currently, I'm using UltraVNC server on Computer C and can access it using Computer B.
I'm using Hamachi as the VPN connection from Computer A to Computer B, but I don't know how to connect to the VNC of Computer C through the connection from Computer A.

Any recommendations on software and set up? If I need to clarify anything, I'll be happy to try and rephrase it.

Thank you.
0
Comment
Question by:nu_gen68
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +2
11 Comments
 
LVL 33

Expert Comment

by:digitap
ID: 35105883
what kind of computer is computer is computer B? if windows, simply RDP to computer B from Computer A and get a vnc to computer C within the RDP session on computer B.

why don't you just get a vpn from computer A to computer C?
0
 
LVL 5

Expert Comment

by:shadowmantx
ID: 35105945
You can setup VNC with different ports for example:

Computer A - 192.168.1.100:5900
Computer B - 192.168.2.100:5901
Computer C - 192.168.3.100:5902
0
 

Author Comment

by:nu_gen68
ID: 35105977
For RDP part, didn't want to access RDP to another RDP, or VNC to another VNC.
Also, wouldn't that cause some lag by running 2 RDP sessions versus 1 RDP over a VPN?

Computer C's only access will come from Computer B, trying to limit outside access to Computer C.
Computer B in this scenario is just the tunnel for Computer A to access Computer C in a secure manner.

Computer A runs Windows 7.
Computer B and Computer C both run Windows XP Pro.
0
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 
LVL 3

Expert Comment

by:kevdines
ID: 35106496
Hi nu_gen68,

If I understand this right, you want to VPN to CompB, then VNC from CompA directly to CompC via this VPN connection (rather than having an intermediary VNC/RDP connection to CompB)? If so, then the principle sounds fine to me - it just sounds like a routing issue. CompB is going to have to be able to act as a router for CompA, and as I'm unfamilar with Hamachi I can't guarantee that this will work (but I'd be surprised if software that allowed incoming VPN connections couldn't also act as a router). If CompB is a Windows server, then you would just need to install the RRAS component and enable LAN routing.

Assuming that the network address ranges of the local network (CompA) and the remote network/s (CompB & CompC) don't overlap:

If CompB and CompC are on the same subnet on the remote network, then this should be pretty straight-forward. Once the VPN is up, confirm that you can ping CompB, then you should be able to ping other network resources, including CompC, on the remote network. If you can ping CompB, but not other resources, post back the output of pathping CompC.

If CompB and CompC are on different subnets, then you have two options. The easiest is just to make sure that your VPN connection to CompB has the 'Use default gateway on remote network' option ticked. I'm not familiar with Hamachi, so I can't direct you to the setting, but it shouldn't be hard to find. Provided that CompB is capable of routing, you should then be able to ping/VNC to CompC.

Alternatively, you can manually add a static route to CompA and CompC, i.e.:

CompA - 192.168.0.100 / 24
CompB - 192.168.10.150 / 24
CompC - 192.168.50.200 / 24

Provided that you can ping CompC from CompB already, you would need to type the following command on CompA:

route add 192.168.50.0 mask 255.255.255.0 192.168.10.150

This will direct all traffic for the network address range that CompC is on over your VPN connection to CompB (you could alternatively use: route add 192.168.1.50.200 mask 255.255.255.255 192.168.10.150 to only route traffic for CompC over the VPN). It doesn't matter whether you do this before or after you connect the VPN. You may also need to add a static route to CompC (as it will have no idea where to route traffic to the 192.168.0.x subnet in the example above). In this case, the command would be:

route add 192.168.0.0 mask 255.255.255.0 192.168.10.150

I think I'm making it all sound more complicated than it really is, but give it a try and let us know how you get on. If you're still having problems, post back the local IP addresses and subnets for CompA, CompB and CompC, and the ping results (once the VPN is connected) for:

CompA -> CompB
CompB -> CompC
CompA -> CompC
CompC -> CompA

HTH,

Kev
0
 
LVL 3

Expert Comment

by:kevdines
ID: 35106546
Boiling that, frankly massive, blurb down a bit:

CompB is going to have to be able to act as a router. XP can't do this natively, so hopefully the Hamachi VPN software will have the functionality for this. If not, digitap's advice is spot on - you'll just have to use two RDP/VNC connections. In my experience, nesting RDP sessions results in less lag than nesting VNC sessions.

Cheers,

Kev
0
 

Author Comment

by:nu_gen68
ID: 35114119
I've actually found another way. It's a program that forwards the connnection from Computer A to Computer C, while using Computer B as the tunnel.

Thank you for your replies and help.
0
 
LVL 33

Expert Comment

by:digitap
ID: 35114134
what's the program?
0
 

Accepted Solution

by:
nu_gen68 earned 0 total points
ID: 35142482
http://www.quantumg.net/portforward.php

That's the program that I ended up using.
0
 
LVL 33

Expert Comment

by:digitap
ID: 35142499
cool...thx!
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 35373052
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question