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 the code at night) I 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, when I set my TM mobile phone for half a day, I lost my flash and watched the server program for half a day. I found that there was no problem running on wifi and there was no problem with the webpage client, that is, there was a problem running on the mobile network, that is, the mobile client has a problem connecting 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.