Fw: Socket Change
"Beerse, Corné"
c.beerse@torex-hiscom.nl
Mon Apr 14 14:25:01 2003
> -----Original Message-----
> From: David Kaplan [mailto:wa1oui@arrl.net]
> Actually I have read the documentation.
>
> However, at http://www.realvnc.com/gettingstarted.html#5 that was
referred
> to, I see no reference to sockets or ports for the viewer. If the
"display"
> number is the same as that (which I doubt), it should be mentioned.
I think the port info is regarded as 'beyond getting started', e.g.: for
advanced users...
As far as I know, it is as follows:
The vncserver (Xvnc for unix/linux) needs a display number where applicaions
can send their windows to. For unix, this is mandatory as it is part of the
X11 standard. Add the number to 6000 to find the actually used port. For
M$Windows, this is not needed as there is only one display: the console. In
all cases, the default is ":0".
Then the vncserver needs a port for the rfb communication. Here, for the
default, the same constructor is used, then with 5900 for base. Hence, the
default rfb port is 5900 + display number. Xvnc, the core of vncviewer on
unix, has an option to overrule this default ( -rfbport ...).
Following that, the vncserver needs a port for the webserver, serving the
java applet. Once again, same construct, other base: 5800. Jet again, Xvnc
has an option to overrule the default: ( -httpport ....).
>
> If you are referring to the section that mentions java viewing with a port
> number, I did see that. However, nowhere does it mention that java is the
ONLY
> way to use a non-standard port and that I cannot do what I desire without
> using the java system. I much prefer the regular viewer and do not see any
> reference to changing that port. I still can't see a way to do that with
the
> regular viewer.
If you want to connect with vncviewer to a vncserver at a 'strange' port,
the 5900+display still holds. Hence, if you use `vncviewer :345` it will
connect using port 6245. Hence you can say the display number is "portnumber
- 5900" (`vncviewer :port-5900`).
This still holds for port numbers below 5900 (like port 80 or such).
However, you need to calculate with unsigned-integers, once-complements,
twos-complement and beyond "maxint" on your computer.... That's stuff for
programmers and such, hence not for beginners....
CBee