Home arrow static arrow Java Programming [Archive] - Detecting Firewall
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Detecting Firewall
This topic has 2 replies on 1 page.

Registered: 9/27/03
Detecting Firewall  
Jun 17, 2004 6:52 AM

Hello everyone!

Does anybody know how to detect firewall taht user has with java programm?

I've wrote a little app taht just trys to connect to itself and it can detect Norton firewall but it seems that XP standart firewall detects only connections taht are going from outside of the network. And my detector can not detect the XP firewall.

Any ideas?

Registered: 1/8/04
Re: Detecting Firewall  
Jun 17, 2004 7:17 AM (reply 1 of 2)

Firewalls, as you have seen, can be configured in more than one way. Many are configured to pass any and all connections out of the machine but to only accept connections on certain chosen ports. I would guess that most will allow any connections from your local machine to itself, though apparently Norton is an exception there.

I would think there are only two reasons to try to learn whether the computer is running a firewall.
1. in order to scold those who are not. In this case, you might be better off getting a list of running processes and scanning it.

2. in order to determine if your app's networking will be blocked. Don't do this. Attempt to make the connection, and if it doesn't work, report it. There are many possible reasons it could fail, including other firewalls between the local and remote apps.

You're not going to see the same behavior connecting to the local machine as you will connecting to or from an outside machine. Your machine will behave differently and you will not be able to account for remote firewalls, router malfunctions, etc.

Registered: 98-02-20
Re: Detecting Firewall  
Jun 17, 2004 7:25 AM (reply 2 of 2)

This line of questioning makes me nervous:


This topic has 2 replies on 1 page.