I am trying to connect to a remote CentOs machine through VNC to get a graphical display.

I have followed the steps mentioned in https://www.howtoforge.com/vnc-server-installation-centos-6.5 to install and configure VNC server on my CentOS machine.

I have used the Iptable command to open 5901 port as well.

However on my ubuntu machine when I type vncviewer and type my the remote server's IP address I get the following error:

main:        unable to connect to host: No route to host (113)
  • Why the downvote? Apr 15, 2015 at 17:17

1 Answer 1


It worked by specifying the port number along with the IP Address:

vncviewer IPAddress:5901

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.