Is there a way to know how many viewers are connected
to the same vncserver ?
THEIS Jean-Marie 139708
Jean-Marie.THEIS "at" cea.fr
Wed May 30 14:56:01 2007
Hi
If your VNC server is on a Linux system ,
another solution is this simple Bash line :
netstat -atn | grep ":$ClientPortNumber.*[0-9][0-9]*[ ][
]*ESTABLISHED"
On one line only ( sorry if this command line is cut because of email )
Where $ClientPortNumber is 5900 , 5901 , 5902 depending on how you use
VNC
Note that the empty field between [ and ] contains a space and also a
tab
Not very elegant but ...
Jean-Marie