How can an applet detect whether its running behind a firewall or not?
Location: http://www.jguru.com/faq/view.jsp?EID=438793 Created: Jun 13, 2001 Author: Finlay McWalter (http://www.jguru.com/guru/viewbio.jsp?EID=13911) Question originally posed by Rajesh Ajmera (http://www.jguru.com/guru/viewbio.jsp?EID=47656 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.
Related Questions
- Im running/have a firewall, home router or ICS. How can I set up a web, ftp, mail server, quake, Half-life or UT server on my home internal network so that people on the internet can see it??
- What is the recommended internet browser for running Java applet?
- Can anyone detect Hide Folders Pro is running?