Walkthrough on how to configure VNC Server and viewer for use over the internet between Windows XP and Windows 7 with a DSL modem (netopia switch) in between.


Right click 'My Computer' click 'properties' click the General tab. Make sure you are fully updated to Service Pack 3. If you are not, then google windows service pack 3, download and install.
go to the realvnc.com site and choose downloads. Download this onto the Windows XP box that will be VNC'ed into. The Server.
Download the VNC Free Edition for windows Executable.
Accept the BS agreement that holds up in court as well as a sandblasted soup cracker.
vnc-4_1_3-x86_win32.exe
Only 725kb? I'm impressed. Run the EXE.
click next.
accept, click next.
download directory, click next.
We don't need the viewer. Only the server.
Yes, the name of this program is RealVNC, good to know.
Service mode is the more industrial strength version you plan on using day to day. it has extra features over user mode.
Review, Install.
You should see this VNC tray icon on your windows xp, hover your mouse, you should see an IP.
Right click the VNC tray icon and click options.
Choose the authentication tab. Choose "Configure" button next to VNC Password Authentication.

WARNING!: This password is the only thing stopping evil people from getting into your box.
So use strong passwords like maybe 'password' or 'god' with impossible to crack number sequences like '123' and your birthday which is publicly available on facebook, friends and other.

OK to leave these as the default. 5900 is your port. The '+' in the access control means let any IP in. You should restrict this, but it is not necessary.
Configure your windows Firewall, Go to Control Panel -> Windows Firewall.
It should be on. Don't turn off the firewall, malware, viruses and such spread with down firewalls.
Notice there is no firewall exception for 5900. That is going to stop your connection. Click "Add Port".
Name: TCP-5900, port: 5900, TCP. Press OK.
Make sure it is checked. Checked mean it is an exception in the firewall.
If you've got yourself a DSL Switch. (The DSL Modem) the black or grey device that plugs your computer's RJ-45 cable into a phone cable. You WILL have to forward ports and/or decrease the restrictions.
Login to your DSL modem. Instructions on how to do this for your modem: use the google.
Navigate to your "firewall" settings. I had to put this on the minimum protection level for it to let the connection through. You may have to do something similar, you may have features to forward your external IP to your internal IP. I didn't have to do any of that.
Go to the advanced screen and find your way to this advanced settings window. Add a Pinhole aka 'port forwarding'.
Add in 5900 TCP forwarded from your external IP address to your internal IP address with forwarded port.
You'll have to restart the device to get it to take effect.
Go to start-> run
run cmd.
run netstat -an
I see 5800 and 5900. 5800 is for accessing your computer through the browser window, so I don't need that.
Check your IP information.
to see if your port is up and running type
telnet 192.168.1.10 5900
You'll get some bizarre response like RFB 003.008. It isn't an error so I'm told this means I'm good to go.
Go to http://www.realvnc.com/cgi-bin/nettest.cgi
You will get this screen if you have something screwed up. This is a tool to check if your ports are open.
I got this response when I didn't do my port forwarding (opening up a pinhole) in my DSL modem.
The error is:
Connecting to port 5900 ... succeeded.
Waiting for server to send version string... failed: [Errno 111] Connection refused.
Go to http://www.realvnc.com/cgi-bin/nettest.cgi
You will get this screen if everything is setup and good to go.
I got this response After I added the 5900 pinhole, port forwarding in my DSL modem.
Go to http://www.gotomyvnc.com/cgi-bin/checkForVNC.pl I got these responses. It looks promising.
If you are having trouble, go get a coffee and read all of this: Go to http://faq.gotomyvnc.com/fom-serve/cache/4.html
Finally, check out the services, you may have to tweak some of these. I didn't have to.
Telnet is off, but it doesn't matter.
IIS Admin is ON. Because I had set it up earlier. I'm pretty sure VNC needs this on.
Go to my computer -> properties.
Make sure these two check boxes are set to Unchecked. These are competitors to VNC. "Allow Remote assistance" and the "Allow Remote Desktop"
In my taskmanager looks like I have a winvnc4.exe.
OK Now go to your laptop, your Windows 7 box and run the VNC Executable we talked about earlier.
Next next next. just like before with the server.
But this time do the viewer, not server.
Create the icons. next next next finish.
Check it out sweet icon. double click it.
Plug in your server name. Your external IP address. You can discover it with http://whatismyip.com
You can use your internal ip 192.168.1.10 if you are connected on the local area network.
If you are on an external network you have to use your external IP, I used 74.209.41.180:5900
Put in the strong password we discussed earlier.
Boom. There it is. VNC'd all up in here.