I am new to Windows Firewall. While allowing a program through Windows Firewall, I found multiple entries present for Firefox and Java. Why is that?
(IME) Java requires firewall exceptions for both TCP and UDP (and one firewall rule can't do both) so that's always two. In addition you can easily have/use more than one java programfile if you:
- use both
java.exefor console mode and
javaw.exefor GUI mode
- use both 32-bit and 64-bit java on 64-bit Windows
- use more than one major version (java 7 and java 8) and possibly with recent versions if you install new update(s) without replacing/removing earlier one(s)
Click the AdvancedSettings botton on ControlPanel / Firewall, or equivalently ControlPanel / AdministrativeTools / WindowsFirewall... or shortcut just run
mmc wf.msc. Select InboundRules or OutboundRules as applicable (usually only Inbound as normal profiles implicitly allow programs Outbound), expand the Program column so you can see all of it, optionally drag columns around and/or click on the heading to sort, and you can more easily see the different programs.
Your two Firefox entries indicate the same executable in the entry name; it's conceivable the actual executables are different, and you should probably confirm, but the Mozilla people don't usually do silly things like that. But quite a few other properties of a firewall entry can differ, like protocol and address/port limitations, so scroll across and look for differences in any column(s) except Name.