I'm trying to VNC into a Mac OSX machine. I can SSH in fine. The VNC server is misbehaving, and I'm tempted to restart it. However I don't want to do that if someone is using it now. Is there any way to see from the command line if anyone else is logged in in VNC? Doing w
shows no-one else logged in over SSH. Is there something like that for VNC?
Mac OSX VNC server – Can I see if anyone else is logged in
loginmacmac-osxvnc
Best Answer
You could see who is connected via VNC by using netstat on the machine in question:
If any connections are established, the 5th column gives you the remote IP address of the connection.