Changing the port #

James "Wez" Weatherall jnw22 "at" cam.ac.uk
Wed, 14 Jul 1999 15:35:03 +0000


> > My PC at home is connected by cable modem. I cannot connect to the VNC
> > server on it using Netscape from the office due to the firewall. I tried
to
> > change the port # used by the VNC server by entering
> > HKEY_LOCAL_MACHINE\Software\ORL\WinVNC3\PortNumber into the registry
with a
> > port # of 443 specified. I also set AutoPortSelect to zero.
> >
> > However I must be doing something wrong, as I couldn't connect to the
> > server using 443 as the port number. Anyone care to point out the error
of
> > my ways?
>
> There are two port numbers used by VNC. One is the port for HTTP
> connections, and one is the port for RFB connections. When you connect
> with netscape, you'd normally type a URL like http://mymachine:5800/ to
> get a connection to the HTTP server that's embedded in VNC. It would
> send you the WWW page containing the Java applet that speaks RFB, and
> then the Java applet would connect back to the VNC server on the VNC
> port (usually 5900 on windows machines). When you change the PortNumber
> registry key, you're changing this second number (5900) and *not* the
> http port. To change the HTTP port you must modify HTTP_PORT_OFFSET in
> rfb.h and recompile the WinVNC server.

That's not true at all.  The HTTP port is changed along with the main VNC
port number.  So if the VNC port is 5903 then the HTTP port is 5803.  I
think there was a version of WinVNC ages ago with a bug a bit like that.

Cheers,

James "Wez" Weatherall
--
- Queens' College MCR Entertainments Officer -
Laboratory for Communications Engineering, Cambridge - Tel : 766513
AT&T Labs Cambridge, UK                              - Tel : 343000




---------------------------------------------------------------------
The VNC mailing list - see http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------