Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run the vncserver using vnc4server.

I take a look in ~/.vnc/ubuntu:1.log

It only show something like this.

Sat Oct  6 20:40:12 2012
 Connections: accepted: 0.0.0.0::2043
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)

Sat Oct  6 20:40:14 2012
 SConnection: AuthFailureException: Authentication failure
 Connections: closed: 0.0.0.0::2043 (Authentication failure)

Sat Oct  6 20:40:16 2012
 Connections: accepted: 0.0.0.0::2048
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)

How do I find the ip of connected vnc client?

share|improve this question

You can use the netstat command to see what open network connections there are.

sudo netstat -a | grep *vnc port number*
share|improve this answer
    
This does not answer the question, because by definition logs are for events having occurred in the past, whereas netstat is for real-time monitoring. – zealoushacker Jun 12 at 19:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.