PARESH MASANI wrote:
Thanks for the reply...
>>In short: display numbers range from 0 to 63.
I think you might have missing here something,because i could connect
to 1-99 ports in any case successfully. only problems with >99. See i
could generate session which has disaplay number 150 by
"vncserver:150" but if i connect it using vncviwer from windows side
it is throwing the error "unable to connect: connection
refused(10061)"
Inside the software, the numbering is not restricted. It is just in te
reservation of the used port numbers. If your remote machine is
effectively a machine using the X11 protocol for graphical display of
the console (vax/vms, unix, linux or such) then the port numbers 6000 to
6063 are reserved for the X11 protocol. Display number 0 uses port
number 6000 and defaults to the console. So the vnc-server with display
number 100 just runs into an other service using the same port number.
Since X11 has reserved port number 6000 to 6063 for display number 0 to
63, if that is occupyed, a vnc-server cannot use it for the
vnc-protocol. Be noted, on those systems, the vnc-server is also an X11
server (it is called Xvnc for the purpose...) Therefor it services
display 0 trough 63 just as all other X11 servers.
On the other hand, a vncserver not only has its vnc-communication at
port 5900, it also has a webserver at port 5800. For other displays than
display 0, you need to add the display number to get the used port
number. Hence if you use display 0, you cannot use display 100 as they
both like to use port 5900, the first for vnc communication, the other
for html communication. Except where the http-server is disabled. This
is true for all vnc servers.
So, yes you can use rougly any portnumer. And yes, you can configure
multiple vnc-servers but be carefull on what portnumbers you use and
which are already in use.
>>you might have a vnc server configured to use port number 50505. then
>>you should point your vncviewer to that portnumber, not the
recalculated
>>subtract 5900) display number.
I couldnt get this. Could you please more clear.
By default, a vnc-server uses port numbers 5900 + display number. It can
be configured to use any other display number. See documentation for
details. Portnumbers range from 0 to 65535 (2 ^16) hence there are a lot
to choose from. Most operating systems restrict the use of some ranges
for dedicated usage, or allow only a selective range for usage by user
programs.
Thanks,
Paresh
----- Original Message ----
From: Corne Beerse <[EMAIL PROTECTED]>
To: PARESH MASANI <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Monday, 18 February, 2008 3:28:05 PM
Subject: Re: Not able to connect if disaplay number is greater then 99
from vncviewer....
PARESH MASANI wrote:
> Hi All,
>
> I just came across the following issue in the Real VNC:
> I have
> created a session using vncserver:150
> When i tried to connect this session
> using vncviwer, its giving error saying "unable to connect: connection
> refused(10061)"
> Could any one please tell me how to solve this?
>
> Thanks,
For X11 (unix/linux) based VNC servers, the effective maximum number of
connections/sessions is limited tot 64, because the X11 protocol only
allows display numbers 0 trough 63. There are even reports of less (up
to 32).
For VNC in general, it opens muliple ports, all with an ofset of 100:
For display number 0, it uses port 5900 for the vnc communication and
5800 for the webserver. The X11 based servers also open port 6000. For
other display numbers, it adds the display number to the base
portnumbers. Hence a vnc-server at display 3 opens port 5903, 5803 and
6003. This system is derived from X11, that uses the same meganism.
Now you like to use display 150, which should use 6050 for vnc, 5950 for
http and 6150 for X11... I hope you can see the confilct.
On the other hand, some vnc-viewers can be pointed to port numbers in
stead of display numbers. I expect the distinguish between portnumbers
and display numbers because the come in a certain range: the first port
numbers have fixed usage since ages: up to 1024 are all pre-defined. So
you might have a vnc server configured to use port number 50505. then
you should point your vncviewer to that portnumber, not the recalculated
(subtract 5900) display number.
In short: display numbers range from 0 to 63.
------------------------------------------------------------------------
Bring your gang together - do your thing. Start your group.
<http://in.rd.yahoo.com/tagline_groups_2/*http://in.promos.yahoo.com/groups>
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list