I have installed VNC server on CentOS 5.8 and it is running, but I cannot connect to it using VNC viewer. I get the following error message:
connect: Connection timed out(10060)
What could be the problem?
Here how to add a firewall exception (you'll need to open ports 5900 and 5800). Linux is not my strong side, so I hope this picture helps...
You will need to do:
Then, you will find a file as follows:
With your correct eth in ifconfig, add the following lines to your iptables:
After the file is saved:
You can have more information at: http://wiki.centos.org/HowTos/VNC-Server. However, you will see that they do not state: 5801:5803, which I have to add in order to get the VNCViewer working.
Just answering it now to make sure that someone else who view this page finds the solution. I was also having this problem on CentOS 6.4 64 bit machine. Resolved this by using the link http://realembed.blogspot.com/2013/10/setting-up-vncserver-on-centos.html