> -----Original Message-----
> From: D M [mailto:[EMAIL PROTECTED]]
> 
>   hey guys...one of the million Qs i have is :Is it possible for the 
> vncviewer to detect what display the server is running on?...
> say the vncserver is running on solaris on display 7...can the viewer 
> connecting to ip address of the server ,from any different 
> machine, detect  this display number??

Here I use vnc to a linux box with inetd setup (see:
http://www.sourcecodecorner.com/articles/vnc/linux.asp). I connect to
vncserver:52 and in the title it shows between ()-s the value of ${DISPLAY}
of the resulting X11 display, not the requested vncserver number.

So if you read the vncviewer window title and exctract the text between the
()-s, then you have the $DISPLAY value to address the X11 display. How to
read this title is os-dependent.


If the above does not work, try the vnc defaults: it's the same number.

The vncview displays use port 5900 + display number
The X11 displays use port 6000 + display number


CBee
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to