vnc port forwarding

Knute Johnson groups at knutejohnson.com
Tue Nov 2 21:52:18 UTC 2021


On 11/2/21 12:10, Colin Law wrote:

> Also *please* do as I asked earlier, and on the machine running vnc run
> sudo lsof -i:5900
> 
> Colin
> 

Just so you don't think you are the only one, I don't think there is any 
VNC server running on his computer either .

Zahid, this is what you should get:

knute at knute-XPS-8700:~$ ps -e | grep vnc
    2566 ?        00:00:00 x11vnc

knute at knute-XPS-8700:~$ netstat -tulpn | grep LISTEN
(Not all processes could be identified, non-owned process info
  will not be shown, you would have to be root to see it all.)
tcp        0      0 127.0.0.53:53           0.0.0.0:* LISTEN      -
tcp        0      0 0.0.0.0:22              0.0.0.0:* LISTEN      -
tcp        0      0 127.0.0.1:631           0.0.0.0:* LISTEN      -
tcp        0      0 0.0.0.0:5900            0.0.0.0:* LISTEN 
2566/x11vnc
tcp6       0      0 :::22                   :::* LISTEN      -
tcp6       0      0 ::1:631                 :::* LISTEN      -
tcp6       0      0 :::5900                 :::* LISTEN      2566/x11vnc

knute at knute-XPS-8700:~$ sudo lsof -i:5900
COMMAND  PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
x11vnc  2566 knute    8u  IPv4  34352      0t0  TCP *:5900 (LISTEN)
x11vnc  2566 knute    9u  IPv6  34353      0t0  TCP *:5900 (LISTEN)


-- 

Knute Johnson




More information about the ubuntu-users mailing list