Often, when we get error “No route to host” to connect remote server via linux command line e.g. wget, curl etc. or web services (webserviceserver).

The first solution we want to try to troubleshot firewalls and proxies?

But before that try hostname entry in linux box…

# vi /etc/hosts
add & save
192.168.0.100 webserviceserver

If still experienced the issue when deploying code from development machine to a live server.

Ping other servers like
# ping google.com
# wget http://www.google.com

If ping & wget working for google means the webserviceserver have some block or restrictions to calling servers.

Make sure with several linux network utilities

# nc webserviceserver.com 8080
webserviceserver.com [192.168.0.100] 8080 (www) : No route to host

# telnet 192.168.0.100 8080 (working?)

# traceroute www.webserviceserver.com (working?)

# ping www.webserviceserver.com (working?)

Make sure firewall is not blocking your access:
# /sbin/iptables -L -n
# /etc/init.d/iptables save
# /etc/init.d/iptables stop

# iptables -F
# iptables -X
# iptables -t nat -F
# iptables -t nat -X
# iptables -t mangle -F
# iptables -t mangle -X

Make sure we are using a router and not a proxy server. Proxy servers are good for Internet browsing but not for ftp, sending ICMP request and so on.

Try on alternate port..
# nc webserviceserver.com 8078

If this is working then we have to use alternate port for the server “webserviceserver.com”

Make alternate port for network connection 🙂

31 Responses to No route to host

  1. Anonymous says:

    Wow, that’s an incredibly nice read!

  2. Anonymous says:

    I am really thankful towards author of this post for producing this lovely and informative article live to put us. We actually appreciate ur effort. Maintain the favorable work. . . .

  3. Anonymous says:

    You completed several good points there. I did so research online on the issue and located many people goes along with together with your blog.

  4. Anonymous says:

    You guys really seem to know your stuff this blog of information was very useful.:)

  5. Anonymous says:

    Thanks for your helpful Post, I hope you have a good day!

  6. Anonymous says:

    bless you for the article, I might come back later to view out your other posts.

  7. Virgilio Mullin says:

    I wanted to let you know you wrote a great article.

  8. Anonymous says:

    Does your blog have a contact page? I’m having problems locating it but, I’d like to send you an e-mail. I’ve got some creative ideas for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it expand over time.

  9. Tama says:

    Can I just say what a relief to find somebody who really is aware of what theyre talking about on the internet. You undoubtedly know tips on how to deliver a difficulty to mild and make it important. More people need to learn this and understand this aspect of the story. I cant consider youre not more common since you positively have the gift.

  10. Raymundo Landreth says:

    This is the proper weblog for anybody who desires to search out out about this topic. You realize so much its almost exhausting to argue with you (not that I really would need…HaHa). You positively put a brand new spin on a topic thats been written about for years. Nice stuff, simply nice!

  11. Anonymous says:

    I found what I was looking for. great article, thanks

  12. Anonymous says:

    Well written content like this restores my faith in quality writing. I finally found information I can agree on and use. Thank you for sharing.

  13. Anonymous says:

    heya there, this is superb article. I absolutely agreed. However there are many of off topic comments. I seriously suggest you to eliminate or something like that. That’s only my opinion. All the best !!

  14. Anonymous says:

    Thanks alot! This is what i was looking for

  15. Angelina says:

    Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon.

  16. Kristal Buden says:

    Hey fans of this website, being pizzed off of so many bad Sites in the internet, i made my new Website. My site has no Popups, only videos with best performance and wont be in any filter. I made it to make the best site of the world. Please support me to reach my goal and look at the site, you wont regret it!! Amen

  17. Alysia Shaikh says:

    I’m no longer positive the place that you are finding your info, however great topic. I ought to spend some time learning more or working out much more. Thank you for wonderful information I was in search of this information for my mission.

  18. Latia Minnick says:

    Im impressed, I ought to say. Pretty hardly ever do I come across a blog thats each informative and entertaining, and let me tell you, youve hit the nail on the head. Your weblog is essential; the concern is something that not adequate people are talking intelligently about. Im seriously happy that I stumbled across this in my search for one thing relating to this problem.

  19. Lou Oger says:

    Your first sentence immediately got me interested in this topic. Your unique commentary and writing style had me convinced of your points. Amazing work. Please continue this type of content.

  20. Anonymous says:

    great submit, very informative. I’m wondering why the other experts of this sector do not realize this. You must proceed your writing. I am sure, you’ve a great readers’ base already!

  21. Roni Huizenga says:

    its good stuff you have written up in here. Been looking for this everywhere. Nice work

  22. gaucho says:

    great to find such great blog, I really like it. you are the best

  23. Irais says:

    Wowza, problem svoled like it never happened.

  24. Sherika Tuazon says:

    After study a couple of of the blog posts in your web site now, and I really like your manner of blogging. I bookmarked it to my bookmark web site listing and might be checking back soon. Pls take a look at my website online as well and let me know what you think.

  25. Andre Golbin says:

    I will always come to visit after.I will recommend your blog to my friends.

  26. Andre Golbin says:

    This article is very interesting, I like it.

  27. Michael Hansip says:

    I wish you all good day, this site is really nice I would always follow this site. Help me a lot of timedata would be btained from this site, or hope to. But I want you to know that this site is really good Thanks a lot for the kind of perfect topic about this topic. It’s good to buy an essay about this good topic. Nice article, very helpful

  28. Sprinkle apk says:

    An gripping speech is worth report. I cerebrate that you should correspond solon on this content, it mightiness not be a taboo theme but mostly fill are not sufficiency to speak on much topics. To the succeeding. Cheers like your No route to host | PHP Solutions.

  29. I’ve beenn exploring for a bbit for any high quality articles or blog poosts in this kind of area .
    Exploring in Yahoo I eventually stumbled upon thks website.
    Reading this into So i am glad to show that I’ve an increeibly good uncanny feeling I found ouut exactly what I needed.
    I most undoubtedly will make sure to don?t put out off your mind this web site and give
    it a look regularly.

  30. Severbus.eu says:

    Great information. Lucky me I recently found your bblog by
    accident (stumbleupon). I have saved as a favorite for later!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.