How can an applet detect whether it's running behind a firewall or not?

Finlay McWalter

There is no sure way, a problem compounded by the fact that there is no single definition of what a "firewall" is.

In many places there is no direct IP connectivity through the firewall - in those cases only an HTTP (and maybe other protocols) proxy exists. A lookup of a public machine (e.g. the one from which the applet was downloaded) using InetAddress will probably fail - if this happens then your applet will probably only be able to perform outgoing HTTPConnections.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.