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.