When I do a java.net.URLConnection.connect() it gives me java.net.UnknownHostException when the server is down.
However, I've found out that if my internet connection is down, the function also throws me a java.net.UnknownHostException.
So how do I determine whether it is a problem with the server (server down) or a problem with the client (my internet connection is down) ?