VNC and NAT - using random ports?
Scott C. Best
sbest "at" best.com
Mon Jul 9 19:40:00 2007
Johan:
Hello! Just checking: if you open a command-line on your
Windows PC (Start -> Run -> "cmd"), and then "netstat -an", can you
verify that something is listening to "27036"? I'm not sure how
you "told" the VNC Server to listen to this port, but the netstat
command will tell you if it did.
Also, on the Viewer side, how did you tell it to connect
to your PC's port "27036"? I assume you typed in something like
"external.ip.address::27036"?
cheers,
Scott
> Hello,
>
> I'm trying to run 2 PCs with VNCserver (4.1.7) behind my router. One Pc is
> in the DMZ, and I have no problems connecting to that one. On the other one,
> I have changed the port number from 5900 to 27036, and in my router the
> ports 27031-27039 are all forwarded to that PC (TCP), but it still doesn't
> work.
> In the windows event log, I can see (on both machines) the VNC server is
> always trying to use another port, and I guess that's the reason why the
> non-DMZ computer can't be accessed.
>
> Why is the VNCserver trying to use another port than the 27036 I told him?
> How can I force the server to use this port? Is there an other way to make
> this work?
>
> Thanks in advance,
> Johan