Sujet : prise de main a distance |
bananepele |
j'ai un peu cherche sur la liste de diffusion voila une réponse à tester au bureau lundi
Citation :
You can't enter negative numbers, but you *can* enter a number
that is large enough to overflow the 16-bit port number when 5900
is added, and thereby result in the correct port number. This
works because WinVNC stores the port number as a 32-bit value,
and truncates it to 16 bits when it's actually used.
If you want to use the WinVNC propertied page to do it, then
for port 2001, the correct number is 65536-5900+2001 = 61637, so
enter 61637 in the WinVNC properties "Display Number" field. (Note,
65536 is 2 to the 16th power, which, when truncated to a 16-bit
value, is 0).
The WinVNC viewer seems to take display numbers outside of the
expected range (which is? I'm guessing 0-99) to be port numbers,
so to connect in this manner you can just use "hostname:2001".
Or you can use 61637+5900 = 67537: "hostname:67537". Same result.
If you want to use port 80, you need 65536-5900+80 = 59716 in the
WinVNC "Display Number" field, and connect to 65536+80 =
"hostname:65616". Note that in this case you *must* use
the large port number, since "hostname:80" would cause the viewer
to connect to port 5980.
|
|