Click to See Complete Forum and Search --> : Refused connection in VNC


Haseldow
08-22-2002, 05:54 AM
Hi,

I can't seem to find any aswers to this in the internet. Could anyone give me a clue?

I start vncserver in my Linux box and it starts ok. Now when I try to connect to it using vncviewer on my windows machine it doesn't give me the password box after I have entered the "VNC server:" field and hit OK.

tail -f .vnc/guybrush:1.log says "22/08/02 10:35:01 Refused connection from client 10.0.2.18" when I try to connect.

(guybrush being my linux box and 10.0.2.18 my windows machine)

I tried to dig to find any security file that specifies denied or allowed hosts, but couldn't find any. The closest match was .Xauthority, but I don't know how to use xauth command and am unsure if this is the one I'm looking for.

I'm running vnc-3.3.3r2-28

Regards,
Haseldow

The Whizzard
08-22-2002, 06:10 AM
Are you using the correct desktop number? it's usually :1 but if you have more than one running, it'll use :2, :3, etc.

When you start the vncserver, it'll tell you which desktop to use, ie. New 'X' desktop is woody:2

On your vnc viewer, you enter woody:2 or IP_address:2 if the name doesn't resolve.

Haseldow
08-22-2002, 06:17 AM
Yup, I'm using :1 (New 'X' desktop id guybrush:1) and connecting to guybrush:1. I also tried to use a web browser to connect to http://guybrush:5801, but no success.

The Whizzard
08-22-2002, 06:28 AM
Do you have anything in your /etc/hosts.allow or /etc/hosts.deny which would prevent wour windows box from connecting to your linux box? Are you running a firewall on your linux box?

Haseldow
08-22-2002, 06:56 AM
Oh yeah :P

/etc/hosts.allow
in.ftpd: 10.0.2.
sshd: ALL

/etc/hosts.deny

ALL:ALL

Thanks