LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-11-2008, 12:54 AM   #1
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Rep: Reputation: 30
VNC Server: How to find who's currently logged in, and their IP addresses?


How to find who's currently logged into a VNC Server, and their IP addresses?
 
Old 05-11-2008, 10:41 AM   #2
jimbo1708
Member
 
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154

Rep: Reputation: 31
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?

- Jim
 
Old 05-11-2008, 11:04 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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.
 
Old 05-12-2008, 05:28 PM   #4
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jimbo1708 View Post
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.
 
Old 05-12-2008, 05:39 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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.
 
Old 05-12-2008, 06:45 PM   #6
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by raskin View Post
The first reason for it to be very far from being logical is that it requires some user interface that has no other uses.
Respectfully disagree. There's always a telnet or rlogin.

Last edited by concoran; 05-12-2008 at 06:48 PM.
 
Old 05-12-2008, 06:55 PM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
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.
 
Old 05-12-2008, 07:12 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,710

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
Actually, these days, most systems disable telnet, rlogin, rsh etc.
Just too damn dangerous to use a non-encrypted cxn.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find out where else I'm logged in x42bn6 Linux - Newbie 2 04-17-2008 10:06 PM
how to find who logged in a month mokku Linux - Newbie 2 02-19-2008 02:57 PM
rhel4 vnc problem, where to configure GUI vnc server? hocheetiong Linux - Newbie 1 10-24-2007 07:05 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 01:06 AM
How to find hosts that users are logged into jtoddman Linux - Networking 0 11-14-2004 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration