VNC Server: How to find who's currently logged in, and their IP addresses?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
the admin for the network at my school says this is not possible for root to easily find. Are you looking for vncsessions that are actively connected or just running?
Are you looking for an easy solution or are you planning on writing some scripts to answer your questions?
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Well, "netstat -np" or "lsof -Pni" will show you active network connections. You can assume that network connection with remote host where local socket is owned y VNC server are the connections you need, I think you will rarely be wrong with this approach.
the admin for the network at my school says this is not possible for root to easily find. Are you looking for vncsessions that are actively connected or just running?
If I am root, it will certainly help me if we had a VNC command that showed me who all is currently watching a desktop, at what port and from what IP address.
I really do not want to have to go down to tcp/ip level to filter out individual IP addresses. I think it's only logical for VNC to have that functionality.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Some VNC servers in some configurations write some log files where, among other data, specify IP addresses of accepted connections. Surely it is server-specific. It is not logical for a VNC server to have a command to list all connections. The first reason for it to be very far from being logical is that it requires some user interface that has no other uses.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Rlogin to VNC server application? Well, that would really surprise me.. I meant user interface of a program. It has logs, and probaly analyzing logs will give you needed data.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.