Programmatically add an application to windows firewall




















Forgot your password? Ask a Question. How to add programmatically firewall rule that allow the others pc to connect to the main PC and the mysql service. Please Sign up or sign in to vote.

See more: C. But the firewall closes the connection between this main PC and the others PCs. What I have tried: and I had to disable the firewall , now all of the others pc connected to it and work fine. Posted 6-Dec am Golden Basim. Add a Solution. RedDk 6-Dec pm. If your firewall is being managed by third-party software, such as an antivirus program, you can usually go to that apps preferences and find a system settings where it's possible to overule DHCP or other LAN prototcol and input a hard address.

Do this on both computers on the network so each sees the other. Then there shouldn't be any security warnings or footplants on any necks as you go forward. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Using Windows Firewall programmatically Ask Question. Asked 11 years, 4 months ago.

Active 4 years, 1 month ago. Viewed 19k times. SamB 8, 5 5 gold badges 44 44 silver badges 53 53 bronze badges. Active 11 years, 2 months ago. Viewed 27k times. All other ports should be blocked for this program alone; I reasoned that this could be comfortably set in the Inbound Rules Section in Windows Firewall with Advanced Security; I hope this is the best way of doing it?

However, how would I accomplish that programmatically? Community Bot 1 1 1 silver badge. Santhosh Santhosh 6, 15 15 gold badges 54 54 silver badges 61 61 bronze badges. Add a comment. Active Oldest Votes. Greg's answer in this question helped me.

Indeed, that answer is totally covering this question. I can personally suggest adding Wix plugin services into their exclusion list per my earlier post. Hello Sandy. Is this the procedure you are walking your users through?

Are you having them perform this step in their Norton product settings? Or adding a firewall rule manually? Our Windows desktop app accepts an incoming connection from a VR headset on the same local network; something which firewalls block by default.

Whatever the mechanism used by the WiX plugin, it doesn't seem to affect third-party firewalls that supersede Windows Defender Firewall -- no surprise there. Surely many vendors of legitimate, signed apps must share a need to add or make it trivial for the user to add firewall rules required for their app to function? Besides the additional load on our user-support staff the developers -- small startup , our new users are often very frustrated by the time they first contact us.

There are also cases where the user swears they don't have any third-party security software, and then we realize they do after 45 minutes of back-and-forth with them.

Users are generally very thankful after we've helped them resolve an issue, but there are many who simply uninstall the app and leave a negative review without seeking support. Ideally, there would be an API or other means for a signed installer or our app when running with elevated permissions to programmatically add the necessary exception s.



0コメント

  • 1000 / 1000