Using ProxySelector to allow users to configure the proxy

Paulo Levi i30817 at gmail.com
Thu Apr 30 09:51:06 PDT 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/net-dev/attachments/20090430/48f083a6/attachment.html 


More information about the net-dev mailing list