Difference between vnc server and X11 ports
Corne Beerse
cbeerse "at" gmail.com
Mon Jan 28 10:00:01 2008
PARESH MASANI wrote:
> I found that there are 5900 to 5999 ports allocated to vnc server and
> 6000+ ports allocated to x11. Could anyone please tell me what is the
> difference between vnc server and x11 and why this is differentiation is there
> in ports? Is vnc server can use the port allocated to x11?
>
VNC on Unix effectively is an X11 server and hence uses the 6000 (to
6063) ports for that. To avoid problems and troubles, the origional vnc
implementation uses the port number of 100 less than the used X11 port
for the vnc communication. As far as I know, this is still the default.
For what its worth: The webserver for VNC is an other 100 numbers less
than the vnc port. That only is a HTTP server that provides a
java-vnc-viewer appliation, which connects to the vnc port.
So there are different port numbers used because a different protocol is
used. The best reason is that this is how port usage is designed. Other
reasons include ease of development and ease of use: the vnc-X11 server
(the xvnc process) can be seen as a proxy between a X11 client (the unix
server) and the desktop.
Success
CBee