Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old November 14th, 2006   #1
dbott67
Chocolate Ubuntu Mocha Blend
 
dbott67's Avatar
 
Join Date: Mar 2005
Location: St Catharines, ON, Canada
Beans: 1,769
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to dbott67
HOWTO: Reverse VNC

Note: As of November 27, 2007 this does not work with the latest version of Ubuntu (Gutsy Gibbon 7.10), however, dazwin has provided a good workaround using xvncviewer in post #66.

VNC is a great tool that can aid in training and troubleshooting, however, with many people running NAT routers (such as D-Link, Linksys, Netgear, etc.) it can be quite difficult to establish a connection.

The problem is that these types of firewalls block unsolicited inbound traffic, preventing you from establishing a connection. Many times, the person requiring assistance does not have the technical expertise to configure "port forwarding" on the router, or they do not have access to the device.

As long they can connect to the internet, they could establish a 'reverse VNC' connection to you --- allowing you to view their desktop. The only caveat is that if you are behind a NAT router or firewall, you must have configured 'port forwarding' on port 5500 to forward to your internal IP address.

How To Setup Reverse VNC

1. 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
Addendum:

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.

Attached is a screenshot of my desktop showing 2 remote laptops (VNC:Tecra & VNC:Dapper) that have connected using this method.

-Dave
Attached Images
File Type: png x11vnc.png (909.0 KB, 846 views)

Last edited by dbott67; November 29th, 2007 at 11:00 AM.. Reason: Added note about 7.10 & workaround
dbott67 is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:39 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry