Home > Back-end >  The client sends sends a request to the http://192.xxx.xxx.xxx/xx/determine whether can be connected
The client sends sends a request to the http://192.xxx.xxx.xxx/xx/determine whether can be connected

Time:11-28

When get to is a format correct IP (192. XXX. XXX. XXX) after the address, check to see whether they can connect successfully gateway, ideas are as follows:
Send http://192.xxx.xxx.xxx/xx/request, if successful, then the IP (192. XXX. XXX. XXX) is correct,

CodePudding user response:

Ping the IP is not good, why the HTTP? Not every IP HTTP service operation

CodePudding user response:

Three layers of IP impassability with ping
Four layers of the TCP port impassability use Telnet

CodePudding user response:

reference 1st floor qybao response:
ping the IP is not good, why the HTTP? Not every IP run HTTP service

Yes, make sure that the IP is HTTP, if not, do an exception handling

CodePudding user response:

reference m0_46679623 reply: 3/f
Quote: refer to 1st floor qybao response:
ping the IP is not good, why the HTTP? Not every IP run HTTP service

On, make sure that the IP is HTTP, if not, do an exception handling
that you this is the server health check, is to test whether the HTTP server is still alive, thought you wanted to test the IP can be connected

CodePudding user response:

Qybao
reference 4 floor response:
Quote: refer to the third floor m0_46679623 response:
Quote: refer to 1st floor qybao response:
ping the IP is not good, why the HTTP? Not every IP run HTTP service

Right, make sure that the IP is HTTP, if not, do an exception handling
that you this is the server health check, is to test whether the HTTP server is still alive, thought you wanted to test the IP can connect

Yes, how to do ah, bosses

CodePudding user response:

reference 5 floor m0_46679623 reply:
yes, how to do ah, bosses

Server-side/health treatment in return ok, directly to the client direct access to the server/health, it is good to have a look at the response status, if the status is 200 is connected, the 200 is connected outside

CodePudding user response:

refer to 6th floor qybao response:
Quote: refer to the fifth floor m0_46679623 reply:

For, what to do ah, bosses

Server-side/health treatment in return ok, directly to the client direct access to the server/health, it is good to have a look at the response status, if the status is 200 is connected, the 200 is connected outside

Could you recommend a similar routine one, thank you
  • Related