Re: Remote VNC
John R Larsen <theClaw56 <at> larsen-family.us>
2004-10-01 20:31:35 GMT
There are multiple issues involved. I'm assuming that you have installed VNC on the remote
computers and that the VNC server is running. You need to know the LAN IP address of the remote
machine you want to connect to. You need to have access to the router at the remote site so that
you can setup NAT port forwarding. The router has a WAN IP address. I assume that you know its
IP address. You need to configure the remote router to forward a given port number to a machine
on the LAN. As an example, say "machine1" with LAN IP address of 192.168.1.100 has its VNC
server listening on the default port of 5900. You need to configure the remote router to forward port
5900 to 192.168.1.100. If that is configure correctly, then on your local machine you should be able
to simply put the WAN IP address in the VNC Viewer's "VNC server:" box and you will connect to the
machine.
If you want to be able to connect to more than one computer at the remote site then you will need to
configure each of the VNC Servers to listen on different ports. The default display number is port
5900. Numbers you enter in the VNC Server setup dialog are offsets from 5900. So if you put in the
number "10" then the VNC Server would actually be listening on port 5910. So, if you give each
computer a different display number then you can configure the router to forward each different port
number to the correct machine.
It gets tricky if the machines keep changing LAN IP addresses. Somehow you need to keep track of
their IP addresses. I like to give my machines static IP addresses on the LAN so that I know which
machine is which.
Remember that VNC isn't secure. When you connect to a remote computer as described above,
the passwords and everything you type is plain text and susceptible to snooping. To get around this
I use ssh connections to a linux box on the LAN and use ssh port forwarding. This provides a
secure connection.
Good luck! VNC is an awesome tool. I've been using it for about six years and couldn't live without
it.
(Continue reading)