Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since I have my home network behind a WRT54G, the router has an external "real" IP address, and the PCs behind it have addresses.

I would like to be able to control one of them remotely - preferably using UltraVNC, but I am open to suggestions.

Since I can't directly address that PC from the internet, I figured I could address a port on my router and have the traffic forwarded to the PC (and the same in the reverse direction).

Is that feasible? Can anyone tell me how to do it (or point me to an URL that does)?


share|improve this question

migrated from Sep 15 '09 at 8:42

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

Migrating to superuser; follow the "migrated to" link... – Marc Gravell Sep 15 '09 at 8:42

It's quite simple, you just need to forward port 5900 TCP (the port usually used by the VNC protocol) from the router to the internal PC you want to remotely control. Thus, when you connect over the net using a VNC client through this port, the router will automatically forward the control to that PC.

Now that you have forwarded the port, you will need to find a way to easily identify your WAN IP (that is, your Internet address) online. For that, you can use the DynDNS service if you are using dynamic IP. If you are using static ip, keying in your IP in the VNC client "connect to" field should do the trick.

Cheers, let us know in the comments if you need more help.

EDIT : added two links that might help.

Port forwarding for VNC

Lifehacker : How to access a home server behind a firewall

share|improve this answer

Port Forwarding UltraVNC on the Linksys WRT54G (skip the ad)

If your "real IP address" is automatically assigned by your ISP (dynamically, thus subject to frequent changes) you'll need DynDNS

Here's a tutorial: Setting Up DynDNS

Choose DynDNS as your DDNS service in the WRT54G's configuration interface:

enter image description here

However, the easiest solution would be Teamviewer (free for personal use): install Teamviewer Host on the home computer, use Teamviewer Portable from a USB stick and remotely contol your PC at home from anywhere. the installation is a two minute job and completely hassle-free!

share|improve this answer

About port forwarding:

  1. Enter the Basic setup of your Router using any browser. Just enter (this is the default address), then the user name and password.

  2. Enter applications and gaming

    enter image description here

  3. Here you can control the port forwarding:

    enter image description here

  4. Visit LINKSYS WRT54G port forwarding. Look for the application you are going to use port forwarding for - in your case search for VNC.

  5. Follow the steps on the website.

share|improve this answer
Please do not rollback edits unnecessarily. – 8088 Nov 3 '11 at 12:10

You must log in to answer this question.