DNS - WGET - No route to host

Posted June 19, 2014 39.2k views
I have config DNS and httpd service on my host, but i can not wget my site from pc (client). Please referbelow From DigitalOcean (ssh to Server):
[root@localhost html]# wget
--2014-06-19 13:11:25--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57 [text/html]
Saving to: ‘index.html.8’

100%[========================================>] 57          --.-K/s   in 0s      

2014-06-19 13:11:25 (10.3 MB/s) - ‘index.html.8’ saved [57/57]
From My PC:
[jack@jack Downloads]$ wget
--2014-06-20 00:11:26--
Resolving (
Connecting to (||:80... failed: No route to host.
Thanks and Best Regards

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers
DNS doesn't seem to be the issue. is being resolved to an IP address. Is the correct IP for your server? Port 80 doesn't seem to be open eternally. Have you set up some kind of firewalling? Make sure port 80 is open.
Thanks for your help but how to open port 80 from my server ( and turn of firewalling ?
  • If you've set up a firewall with iptables, you can open port 80 using: sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT