GOAL: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!QUESTION:My question is, how do I connect to [computer B] from [computer A]?ERROR MESSAGE:I am currently getting the following error message when I try to connect:connection to 192.168.0.2 was closed192.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]?OTHER INFO:Computer A = 192.168.0.1 = Ubuntu 12.04Computer B = 192.168.0.2 = Debian StableBoth are fully updatedIPTABLES (same on server and client):Chain INPUT (policy ACCEPT)target - prot opt source - destinationChain FORWARD (policy ACCEPT)target - prot opt source - destinationChain OUTPUT (policy ACCEPT)target - prot opt source - destinationLISTENING PORTSsudo lsof -i -P | grep -i listenrpcbind   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)SCREENSHOTS:This is the client software I have on [computer A]:This is the software (server software I guess) I have on [computer B]:
LAN only VNC help
ubuntu;debian;vnc;remote desktop
Method #1 - VNC from ComputerA -> Bwhere a user is already logged in on BYou don't specify what VNC client you're using but one of the more popular ones is Vinagre. It's typically included with GNOME desktop based distros, which should cover most of the larger distros.InstallationFirst you'll want to make sure that you have GNOME's VNC client, vinagre installed as well as the VNC server, vino.On my Fedora 19 system these packages required installation.$ sudo yum install vinagre vinoOn Ubuntu you'd install the same packages, using apt.$ sudo apt-get install vinagre vinoServer setupOnce installed you'll want to make sure that the VNC server is running on computer B. You can do this either by navigating through Settings -> Sharing menu from where you can select to enable Screen Sharing.Fedora     Ubuntu              NOTE: You can invoke vino's preferences from the command line like so: $ vino-preferencesClient setupOnce the VNC server's been setup on computer B, you should now be able to connect to it from computer A, using vinagre, the VNC client. You can do this either from the command line like so:$ vinagre vnc://greeneggs.bubba.netWhere the vnc://... is the server string provided by vino, as in the screenshot above.Additional notesIf you need to summon the VNC server's dialog directly from the command line it's called vino-preferences.vinagre is also a GUI that can be launched bare, and bookmarks can be maintained for VNC severs that you may frequent.To launch it use the command vinagre.      Method #2 - VNC from ComputerA -> Bwhere a user is not already logged in on BServer setupUbuntuInstall x11vnc$ sudo apt-get install x11vncCreate /etc/init/x11vnc.conf file.start on login-session-startscriptx11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.logend scriptAfter restarting (rebooting), x11vnc should be listening on the standard VNC port, 5900.You can confirm$ sudo netstat -tapn | grep 5900tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      2379/x11vnc     tcp6       0      0 :::5900                 :::*                    LISTEN      2379/x11vnc     NOTE: The script is based on an upstart event mechanism where Lightdm emits login-session-start events, x11vnc is then started.ReferencesRemote VNC login to Ubuntu 11.10Remote VNC login to Ubuntu 12.04