Setup VNC for Reverse connection

Started by ghostdog, January 04, 2011, 10:34:52 PM

Previous topic - Next topic

ghostdog

Make sure that you have setup any necessary port-forwarding on your router to forward TCP port 5500 to your internal IP address. You may want to consider using a static IP (or static DHCP), so that you always have the same internal IP address.

I also use a dynamic DNS service so that I can just tell people to connect to myhost.dyndns.org, rather than having to tell them my external IP address.

2. On the "remote" computer (the one that you want to control), you need to install the x11vnc package:
Code:

$ sudo apt-get install x11vnc

3. Before the remote user can "send their desktop", you need to set vncviewer to listen-mode on your computer:
Code:

$ vncviewer -listen 0

4. Lastly, the remote user needs to issue the following command:
Code:

$ x11vnc -connect your.external.ip.address:5500

or
Code:

$ x11vnc -connect myhost.dyndns.org:5500

NB:

For those that really want to shield the remote user from the command line, you could create a file on the desktop called "Remote_help.sh" and enter the following:
Code:

#!/bin/bash
x11vnc -connect myhost.dyndns.org:5500

Don't forget to change the permissions to 'executable':
Code:

chmod 755 ~/Desktop/Remote_Help.sh

Now, they just have to double-click the "Remote_Help.sh" file and select RUN.

If your router is configured correctly, their desktop should appear automatically.

Enjoy
GD