How to vncserver calls Xvnc?
Corne Beerse
cbeerse "at" gmail.com
Wed Feb 13 12:45:01 2008
paresh masani wrote:
> Could any one please tell me how vncserver calls Xvnc? How Xvnc will knows
> where it has to connect on HTTP and RFB ports? Can i specify RFB and HTTP
> ports to connect?
>
As far as I know, `vncserver` is a perl-script. If you read englisch and
have some scripting or develoment experience, you should be able to read it.
For port connections, that is fairly default: Xvnc is an X11 server and
hence services an X11 server at port 6000 plus display number. That uses
the first free display number (if it is not provided/forced) For display
number 'localhost:3.0', port 6003 is used. With that number at hand, the
same trich is done for the vnc-port. There the base is 5900, hence in
the example port 5903 is used. Finally, if you have the http server
enabled, it uses 5800 as base (and 5803 in the example).
That is to say, by default. If you use the 'inet' option, only port 6000
(add display number) is used. The vnc communication is on stdio
(stdin/stdout) as it should with inet. For the http-server, I donnot
know the details/defaults.
CBee