Assume my PC is 192.168.1.3 for this example.
First, download the UltraVNC binaries.
On your side:
- Forward a port through the firewall to your PC, eg. 6666
- Start the viewer on your PC: vncviewer.exe /listen 6666
- winvnc.exe -connect 192.168.1.3::6666
Also note that you have to launch winvnc.exe once with no parameters. You will need to set a password, which you will probably never need to use. You can also change the port here. Although the port will be specified on the command line, if you set it here to the same port, Windows Firewall will only ask you to open one hole.
As you can see, you have to start winvnc with no arguments, before then telling it to connect to your viewer in listen mode. You could put this in a script:
winvnc.exe -connect 192.168.1.3::6666
This script needs sleep.exe from the Windows 2003 Resource Kit.