4

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?

1

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

sudo netstat -a | grep *vnc port number*
  • 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 '16 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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