vnc not connecting

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

vnc not connecting

Postby johng » Dec 10th, '12, 02:43

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?
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: vnc not connecting

Postby tom_ » Dec 13th, '12, 17:45

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?
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: vnc not connecting

Postby johng » Dec 13th, '12, 22:07

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.
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: vnc not connecting

Postby tom_ » Dec 14th, '12, 15:58

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
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: vnc not connecting

Postby johng » Dec 14th, '12, 23:17

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.
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: vnc not connecting

Postby tom_ » Dec 15th, '12, 01:49

firewall disabled on both sides?
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: vnc not connecting

Postby johng » Dec 15th, '12, 23:11

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).
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42

Re: vnc not connecting

Postby tom_ » Dec 16th, '12, 04:56

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
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: vnc not connecting

Postby johng » Dec 16th, '12, 13:44

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?
johng
 
Posts: 61
Joined: Dec 1st, '11, 11:42


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 0 guests