I have 2 computers in a LAN environment (I will refer to them as [computer A] and [computer B]) and I want to log into [computer B] via [computer A].
I have a VNC client on [computer A]
Remote Desktop Viewer and I have setup
Desktop Sharing Preferences on [computer B], see screenshots below. The LAN IP address of [computer A] is 192.168.0.1 and the LAN IP address of [computer B] is 192.168.0.2.
Both computers have no problem pinging to each other!
My question is, how do I connect to [computer B] from [computer A]?
I am currently getting the following error message when I try to connect:
connection to 192.168.0.2 was closed
192.168.0.2 is the IP address of [computer B].
PORTS / FIREWALL:
I can't see the port 5900 listed when I run
sudo lsof -i -P | grep -i listen. I don't have a firewall installed either. I've now installed Gufw on both [computer A] and [computer B]. I am not sure how to configure it. Do I set it up to allow incoming connections for vnc on [computer B] and allow outgoing connections for vnc on [computer A]?
Computer A = 192.168.0.1 = Ubuntu 12.04 Computer B = 192.168.0.2 = Debian Stable
Both are fully updated
IPTABLES (same on server and client):
Chain INPUT (policy ACCEPT) target - prot opt source - destination Chain FORWARD (policy ACCEPT) target - prot opt source - destination Chain OUTPUT (policy ACCEPT) target - prot opt source - destination
sudo lsof -i -P | grep -i listen rpcbind 1853 root 8u IPv4 5755 0t0 TCP *:111 (LISTEN) rpcbind 1853 root 11u IPv6 5762 0t0 TCP *:111 (LISTEN) rpc.statd 1884 statd 8u IPv4 5818 0t0 TCP *:56428 (LISTEN) rpc.statd 1884 statd 10u IPv6 5826 0t0 TCP *:39576 (LISTEN) cupsd 2615 root 6u IPv6 17952 0t0 TCP localhost:631 (LISTEN) cupsd 2615 root 8u IPv4 17953 0t0 TCP localhost:631 (LISTEN) mysqld 3042 mysql 10u IPv4 7466 0t0 TCP localhost:3306 (LISTEN) exim4 3855 Debian-exim 3u IPv4 8075 0t0 TCP localhost:25 (LISTEN)
This is the client software I have on [computer A]:
This is the software (server software I guess) I have on [computer B]: