I've just realized that i could have explained this much more cogently by just saying: "I want to detect if i'm behind a proxy firewall".
I'm thinking of using: InetAddress address = InetAddress.getByName("http://google.com"); if (address.isReachable(2000)) { //yes }else{ //no } but even google has been known to go down.