Thursday, December 30, 2010

Why do I receive "unable connect to socket: No route to host (113)"

■ Error : Why do I receive "unable connect to socket: No route to host (113)"
■ OS Environment : Linux[RHEL, Centos]
■ Application: vncviewer 
■ Resolution : 

  •  Please check the firewall in the linux server.  Please allow the ports 5801,5901 and 6001 in the iptables or firewall. 
  • Then restart the firewall and try to connect to the server. 
  • Disable firewall.
  • Make sure proper gateway is setup for all defined routes.



6 comments:

  1. I tried it and even after that it is not working

    ReplyDelete
  2. Hi Sathees,

    Have you checked whether vnc server is running or not?

    ReplyDelete
  3. Try stopping the iptables using:

    #chkconfig --del iptables
    #service iptables stop

    This actually worked for me.

    ReplyDelete
  4. Stopping iptablels is not correct idea. This will be a security breach.

    ReplyDelete
  5. whoever has written following comment

    Try stopping the iptables using:

    #chkconfig --del iptables
    #service iptables stop

    This actually worked for me.


    I am really thankful to that person

    i am trying from last 10hrs before posting this

    only bcoz of ur comment i have succeed to use vncserver

    thanks a million times man..........

    ReplyDelete
  6. thank u man for the advice to enable the firewall ports.i have enabled the port no 5900.

    ReplyDelete