Viewer Port Number

Corné Beerse cbeerse "at" lycos.nl
Mon May 3 09:18:01 2004


Matthew Schroeder wrote:

> okay, so let's say you tell the server to listen on port 6000, how do you
> tell the viewer on another machine that the server is listening on port
> 6000, not 5900? 

To use vncviewer with any port number, keep in mind that it accepts an integer 
for the display number and adds 5900 to that to get the port. You can (ab-)use 
the integer calculation to get any port number.

DETAIL! It is already dangerous to go outside the range 5900 - 5963. The 
vncserver already uses port numbers 5800+display (for the webserver) and 
6000+display (for the X11 windowing system). All other X11 windowing systems use 
this 6000+display so changes are it is already in use. If you don't care about 
X11, keep in mind that using display 100 for VNC also puts the vncwebserver on 
port 5900, which just might be your other vncserver. IN all cases, display 
number 0 (null) is the default hence better not use that.

CBee

>  
>  
> 
> Sincerely, 
> 
> Matthew Schroeder 
> PMAI: Software Developer 
> 517-788-8100 Ext. 310 
> _______________________________________________
> VNC-List mailing list
> VNC-List "at" realvnc.com
> To remove yourself from the list visit:
> http://www.realvnc.com/mailman/listinfo/vnc-list