Is there any way to on/off windows firewall using Java? I search on google and stack-overflow, i don't find anything useful.
Asked
Active
Viewed 853 times
1 Answers
3
Yes.
There is a COM interface that allows the firewall state to be controlled. Here's an example from MSDN in C++.
Note that your Java program needs elevated permissions to change the setting.
For tips on using COM from Java, see