Android error: connect failed: ehostunreach (no route to host)

Source: Internet
Author: User

Error: java.net. connectexception: failed to connect /***. ***. ***. * ** (port 80): connect failed: ehostunreach (no route to host)

Error: java.net. connectexception: failed to connect /***. ***. ***. * ** (port 80): connect failed: ehostunreach (no route to host)

Error: java.net. connectexception: failed to connect /***. ***. ***. * ** (port 80): connect failed: ehostunreach (no route to host)

Error: java.net. connectexception: failed to connect /***. ***. ***. * ** (port 80): connect failed: ehostunreach (no route to host)

Error: java.net. connectexception: failed to connect /***. ***. ***. * ** (port 80): connect failed: ehostunreach (no route to host)

I found a very strange problem yesterday. I tested a small product in the morning and found that I couldn't connect to the network. I still reported the error. (The key is that the day before yesterday, I didn't touch it at night.CodeI thought it was a problem with the server or client. I 've been Baidu and Google since yesterday afternoon. I have also translated my blog for half a day, muma. One of them said that the mobile phone settings were incorrect, I set my TM mobile phone for half a day, so I had to flash the machine and read the server for half a day.ProgramIt is found that there is no problem running under WiFi, and there is no problem with the webpage client, that is, there is a problem when the mobile client connects to the mobile network. Isn't that a pitfall. I was speechless. At half past twelve last night, I got tired and prepared to go to bed. Then I tested it again before I went to bed. TMD was ready, and I tried several interfaces one after another. No problem, I woke up, muddy horse. This is a signal of movement. I wiped it .... (I have never heard of a single signal on a mobile phone, but only once) China Mobile sometimes does not have a signal, although this probability is very low, but when you meet it, you will be killed.

In this case, we recommend that you unplug the cell phone, unplug the battery, and restart it. It was a waste of time yesterday.

In fact, I should know from the beginning that this is not my code error: Because this error I have never encountered before: This Chinese meaning: unable to find the route to the host. This means that the network is temporarily blocked. As a result, I simply check the programs on the server... Sad reminder... We recommend that you do not have the confidence in your own code.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.