Remember to read up on WinVNC on the web. I suggest using TightVNC instead of WinVNC, but they work the same and are compatible.
You determine the WinVNC (TightVNC) port number by choosing the "display number" when you configure WinVNC server (application). If you choose a "1", the port that WinVNC will use is 5901. If you leave the display number a 0, WinVNC will use port 5900.
Using Port Forwarding for TCP 5900 and 5901 on SME: (for example I will use sme.dyndns.org as hostname for your SME server) NOTE: You can use the ext. IP address of your SME instead of a hostname.
If you have a computer "A" running WinVNC server with a display number=0, you would connect to "A" by entering "sme.dyndns.org" as the VNC server in the WinVNC Viewer box. Note, VNC uses display numbers of 0 by default. Note that sme.dyndns.org=sme.dyndns.org:0
If you have another computer "B" running WinVNC server with a display number =1, you would connect to "B" by entering "sme.dyndns.org:1" as the VNC server in the WinVNC viewer box.
Setting each computer on your lan with a different display number will allow you to access up to 100 computers through the firewall. Display numbers values are between 0 and 99. So, you have to plan your VNC computers with your portforwarding....for example:
Computer "J" will have display number=10
WinVNC will be listening to port 5910 on computer J
SME: port forward TCP 5910 to computer J internal IP address.
EACH VNC MACHINE WILL HAVE ITS OWN UNIQUE DISPLAY NUMBER AND PORT FORWARDING ENTRY ON SME. Port forwarding works great for several machines.
VNC also works through a web browser and uses port 5800 (display number=0) as default. I prefer using the VNC Viewer to a web browser to connect. If you use the web version, all the above is the same except you have to use 58xx instead of 59xx for port forwarding. xx=display number.
Another option:
Connect to your lan by vpn. Set up all computers with VNC display number=0 (0 is default setting). You would then connect to a computer by first connecting the vpn, then using the internal computer name or ip address in vncviewer. This option is better if you want to be able to connect to lots of computers from outside the firewall as you don't have to set a port forward and display number for each machine. I use this method on all computers at work. I use portforwarding for 2 computers at home.