Java offline or online

broken image
broken image
broken image

If the connection fails, one can assume that the server is down (although the problem can be somewhere else too).Ĭheck out this function and read all the user comments: One way to try to find out if a server is online is to try and open a socket connection to the server.

broken image

I don’t think this this is possible with JavaScript as you need to operate on socket level.