To change the ports ranges to support upto 1000 sessions...

Corne Beerse cbeerse "at" gmail.com
Mon Feb 4 10:56:01 2008


PARESH MASANI wrote:
> Hello Friends,
>
> As we knows RealVNC provides maximum 100 sessions. and changes
> in the vncserver script to 1-1000 to support 1000 sessions will lead to port
> clashes. So I think if is it possible to assign ports as following way then
> there will not be any clashes. At present Real VNC support 100-100 blocks for
> java viewer,x11 and RFB ports. Is it possible to make it 1000-1000 blocks
> continuosly?
>
>   -->  JAVA viewer ports 5800 to 5999 
>   --> RFB ports 5900 to
> 5999 
>    --> X11 ports 6000 to 6999 
>
> If anyone knows how to achive this then
> please let me know,it will be really helpful to me.
>   
If you realy want to use that much port numbers, then I'd like to see 
the machine and network that handles that number of sessions.

If it is just for administrative purposes, then donnot use fixed port 
numbers. Better use the inetd-way: Have Xvnc started from inetd. Every 
user can just point to the same portnumber to get a session. That user 
will get a fresh session and the session is cleared after the user 
disconnects. This sessions donnot use the vnc 'security', it usses the 
same login session as the console. For what it is worth: most current 
linux distributions have such a setup available so check your 
distribution for details.

If you need a 'sticky' session, a session that is re-entrant and keeps 
running when you disconnect, or a session that can be accessed from more 
than 1 viewer, you only need a couple of those, definitly not more than 10.



Success
CBee