Now x0vncserver is running on the remote laptop.
From local through ssh to remote:
sudo lsof -i -P -n | grep LISTEN
[sudo] password for root:
...
x0vncserv 4358 jp 4u IPv4 115494 0t0 TCP *:5900 (LISTEN)
x0vncserv 4358 jp 5u IPv6 115495 0t0 TCP *:5900 (LISTEN)
...
ss -tunlp4
tcp LISTEN 0 5 0.0.0.0:5900 0.0.0.0:* users:(("x0vncserver",pid=4358,fd=4))
Good!
From local desktop
sudo traceroute 192.168.1.115
[sudo] password for root:
traceroute to 192.168.1.115 (192.168.1.115), 30 hops max, 60 byte packets
1 laptop.domain.org (192.168.1.115) 0.249 ms 0.262 ms 0.872 ms
But I cant connect with tigervnc viewer
vncviewer 192.168.1.115
TigerVNC Viewer 64-bit v1.9.0
Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
See http://www.tigervnc.org for information on TigerVNC.
No protocol specified
Wed Mar 18 14:04:09 2020
DecodeManager: Detected 8 CPU core(s)
DecodeManager: Creating 4 decoder thread(s)
CConn: unable connect to socket: Connection refused (111)
Can I reach with another program?
nc -zv 192.168.1.115 5900-5905
nc: connect to 192.168.1.115 port 5900 (tcp) failed: Connection refused
nc: connect to 192.168.1.115 port 5901 (tcp) failed: Connection refused
nc: connect to 192.168.1.115 port 5902 (tcp) failed: Connection refused
nc: connect to 192.168.1.115 port 5903 (tcp) failed: Connection refused
nc: connect to 192.168.1.115 port 5904 (tcp) failed: Connection refused
nc: connect to 192.168.1.115 port 5905 (tcp) failed: Connection refused
telnet 192.168.1.115 5900
Trying 192.168.1.115...
telnet: connect to address 192.168.1.115: Connection refused
I tried to look at the Ethernet trafic with Wireshark. When I send a telnet command from local I get a TCP packet from source local to destination remote computer. The a TCP answer from remote to local.
9 9.472827143 192.168.1.110 192.168.1.115 TCP 74 43920 → 5900 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=3805077991 TSecr=0 WS=128
10 9.473052701 192.168.1.115 192.168.1.110 TCP 60 5900 → 43920 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0
When I try to connect with tigervnc viewer
20 0.946954641 192.168.1.110 192.168.1.115 TCP 74 43964 → 5900 [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=3805468957 TSecr=0 WS=128
21 0.947158981 192.168.1.115 192.168.1.110 TCP 60 5900 → 43964 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0
I see that the commands go to the destination and the remote answer. I am stick at this point.
I’d guess you have more to say with that info.