DNS - WGET - No route to host

June 19, 2014 11.3k 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 denybuddy.com
--2014-06-19 13:11:25--  http://denybuddy.com/
Resolving denybuddy.com (denybuddy.com)... 128.199.168.164
Connecting to denybuddy.com (denybuddy.com)|128.199.168.164|: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 denybuddy.com
--2014-06-20 00:11:26--  http://denybuddy.com/
Resolving denybuddy.com (denybuddy.com)... 128.199.168.164
Connecting to denybuddy.com (denybuddy.com)|128.199.168.164|:80... failed: No route to host.
Thanks and Best Regards
2 Answers
DNS doesn't seem to be the issue. denybuddy.com is being resolved to an IP address. Is 128.199.168.164 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 (128.199.168.164) 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
Have another answer? Share your knowledge.