Before we can forward ports for UltraVNC, we need to figure out what ports UltraVNC is using. Here is a brief walkthrough on how to do that. Go ahead and open up UltraVNC and get into the Admin Properties.
In the Incoming Connections area you should see a Ports Main and Ports Http boxes. The Ports Main box lets you specify the port that will be used when you use a VNC Viewer to connect to the server. The Ports Http box lets you specify the port that will be used when you use a web browser to connect to the server. If you want to change the ports go ahead and do so. Then enter those ports into the boxes below. Please enter the port you chose for the Ports Main box into the box below.
Open a web browser like internet explorer or Netscape. Enter the ip address of your router in the address bar of your browser. In the picture above the address bar has http://www.google.com in it. Just replace all of that with the ip address of your router. By default the ip address should be set to 172.16.0.1.
Click the Application Support button near the top of the page.
Click the Enable Application Support link near the top of the page.
Click the Add a new user-defined application link near the bottom of the page.
We will list a series of lines here that will show you exactly how to forward the ports you need to forward. UltraVNC requires you to forward the ports you entered above. Go ahead and enter the settings shown above into the Edit Application menu and then click Add Definition.
You should see another page of settings that need to be entered into one of the blank lines on your routers Edit Application page. Go ahead and enter those settings and then click Add Definition.
When you are finished, click the Done button at the bottom of your screen. And that is it! You are done!