Hi,
Can someone suggest the best way of checking if I'm connected to the internet, or a specific web server?
Is it just a case of trying to get a response from a given web server and checking it's equal to 200 so I just need to use the URLConnection class? I'm just concerned with having to wait for a response if the server is down or a route is unavailable.
Ideally, I want to write a
servlet that supplies a working route to a caller.
Thanks.