VNC Connection refused (10061)
I'm trying to use the VNC server on redhat 7.0 I'm using a windows 200 pro to get into the redhat 7.0 but I keep getting the "Connection refused (10061)" error anyone know what this means? I can go the other way with vncviewer.
|
Ok now when I run vncserver :1
and try to log in with : "192.168.1.50:1" I get the following : "server closed connection unexpectedly" any idea's |
Do you have the firewall enabled? Perhaps that's what's kicking you off. Also, make sure the vnc service running. Just my 2 cents.
Travis |
u'll have to set the correct (ip-tables) firewall rules for incoming connections..
first try stopping ur ip-tables firewall and see if u can establish the connection..... |
how do you stop the ip-tables?
I'm pretty new at this |
service iptables stop or /etc/init.d/iptables stop
please include ur distribution and kernel version so that it would be easier to address any problems effectively... just a suggestion.... peace |
Ok I think I got the ip tables to stop.
Now every once is a while it will let me in, it'll ask for a password and I'm in, but most of the time it will just tell me " server closed connection unexpectedly " also I'm running redhat 7.0, I don't know what the kernel is..... :confused: is anyone could tell me how to find out, I'd be hapy to tell you all what it is.. Thanks for the help so far |
Hi,
#uname -r the above command will give the kernel u have on your sytem.... |
Ok the kernel is : 2.2.16-22
there ya go. |
on linux
1)#su - 2)#xhost + [using this is not recoomende but only for testing... remember that] 3)#vncserver New 'X' desktop is localhost:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/localhost:1.log open a new shell 4)vncviewer Ur_ipaddress:1 [the one mentioned here is there in the output of #vncserver command ie. --> New 'X' desktop is localhost:1 ] 5)#netstat -a | grep 59 [Output ---> tcp 0 0 *:5901 *:* LISTEN ] vncserver ports normally are opened from 5900 upwards in my case as u can see its 5901 and then on WIndows download Tightvnc ---> run the---> vncviewer Ur_ipaddress::5901 {***Note the two colons and then the port } Enter ur password when prompted It should work... if it doesnt work # ls -a [the above command will give u a list of all normal + hidden files] there is a hidden folder .vnc in ur root directory which there is a {log} of what is happening open it and post it... also post the output of #tail /var/log/messages it will dispaly the log file... Good Luck!!!! |
All times are GMT -5. The time now is 07:01 AM. |