Page 1 of 1

vnc not connecting

PostPosted: Dec 10th, '12, 02:43
by johng
I am trying to view a remote (laptop) desktop using Hamachi and Tigervnc on my Mageia 2 Desktop.

I can see the laptop if I use Hamachi/vncserver on a Mandriva 2007 Desktop. After logging into Hamachi, using the command: 'vncviewer xx.x.xxx.xxx' (the Hamachi laptop address) I am asked for a password, and the laptop desktop appears.

I installed Tigervnc on Mageia 2 (to get vncviewer). After Hamachi connects, running 'vncviewer xx.x.xxx.xxx', Tigervnc returns "unable to connect to socket. Connection timed out." I do this as root with the firewall disabled.

Using command line: 'vncviewer listen' tells me it is using port 5500. I have tried commands such as: 'vncviewer xx.x.xxx.xxx :5900' and 'vncviewer xx.x.xxx.xxx port 5900' without success.

I have tried using KRDC (KDE Remote Desktop Client) entering xx.x.xxx.xxx (Hamachi address) to no avail.

The question is: what am I doing wrong?

Re: vnc not connecting

PostPosted: Dec 13th, '12, 17:45
by tom_
johng wrote:Using command line: 'vncviewer listen' tells me it is using port 5500. I have tried commands such as: 'vncviewer xx.x.xxx.xxx :5900' and 'vncviewer xx.x.xxx.xxx port 5900' without success.


as 5500 is different from 5900, I guess it is a typo.

have you trid to run
Code: Select all
nmap xx.x.xxx.xxx


to see if from your machine the remote post is available?

Re: vnc not connecting

PostPosted: Dec 13th, '12, 22:07
by johng
Thank you for the reply.

I should have stated: I have tried commands such as: 'vncviewer xx.x.xxx.xxx :5500' and 'vncviewer xx.x.xxx.xxx port 5900' without success.

Re: vnc not connecting

PostPosted: Dec 14th, '12, 15:58
by tom_
no problem, I also should have stated

have you tried to run

Code: Select all
nmap xx.x.xxx.xxx


this command gives the list of the opened port on xx.x.xxx.xxx,
so it is useful to see if the problem is in the vncviewer application or on the machines
(firewalls or some other network problem)

if you haven't nmap installed, please type as root

Code: Select all
urpmi nmap

Re: vnc not connecting

PostPosted: Dec 14th, '12, 23:17
by johng
Thanks Tom

# nmap 25.xxx.xxx.x -Pn
Starting Nmap 5.51 ( http://nmap.org ) at 2012-12-15 10:07 NZDT
Nmap scan report for 25.xxx.xxx.x
Host is up (0.000027s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
631/tcp open ipp
Nmap done: 1 IP address (1 host up) scanned in 0.55 seconds

Note: I have censored the IP address, firewall disabled.

Re: vnc not connecting

PostPosted: Dec 15th, '12, 01:49
by tom_
firewall disabled on both sides?

Re: vnc not connecting

PostPosted: Dec 15th, '12, 23:11
by johng
Both firewalls are disabled.

The display on the remote Windows XP indicates that the hamachi VPN has been established, and when it is terminated by the local device. It is the same hardware, and the same hamachi version on Mdk 2007 and Mageia. The problem is that vncviewer works on Mdk 2007 but not on Mdk 2010 and Mageia (1 & 2).

Re: vnc not connecting

PostPosted: Dec 16th, '12, 04:56
by tom_
the output of the nmap command
says that only the port 631 is visible from your pc,
so or there is a firewall running somewhere between these machines
or the service is not running on the othe
r
machine.
You can try to ping both machines from the other one,
just to do a simple test.
Sorry but I can't immagine any other cause for this problem

Re: vnc not connecting

PostPosted: Dec 16th, '12, 13:44
by johng
Interesting.

If on Mdk2007 I do nmap 25.x.xx.xxx, I get:
Interesting ports on 25.x.xx.xxx:
Not shown: 1021 filtered ports, 674 closed ports
PORT STATE SERVICE
5800/tcp open vnc-http
5900/tcp open vnc

On Mageia # nmap 25.x.xx.xxx
Starting Nmap 5.51 ( http://nmap.org ) at 2012-12-17 00:34 NZDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.11 seconds

In the Mageia Control Center/Security/Firewall = Everything (no firewall). Firestarter firewall = disabled. Yet, when I initiate hamachi on Mageia, the hamachi gui on the remote desktop indicates the connection has been establish. When I logoff hamachi on Mageia, the remote display shows the disconnection.

What else can be blocking port 5900/5800?