Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am developing an application that uses x11vnc in the background and I would like to know how many users are currently connected. I have reviewed the list of commands but I have not found anything for that purpose.
netstat -anpt | grep SERVER_PORT | grep 'ESTABLISHED' | grep -c 'tcp'
Required, but never shown
1 month ago