2

I have a WCF Service running on port 8000, but I have also a firewall enabled. I am using this code to try to add my program to the firewall exceptions list, so I can use the service without disabling the firewall. Also, I want to do that automatically. Thats why in my previous researches, I found this link: Automating Windows Firewall with (I was using a modified version of the clsFirewall to just add the program to the white list, no ports.)

To allow in/out traffic, I used netsh advfirewall firewall ad rule command to add a rule for my port.

Even though the port are indeed added to the rules list, aswell as my application, it doesnt seem to work with the firewall enabled. I am using http://www.canyouseeme.org/ to check the port. It only works when I disable my firewall.

What might be going wrong?

I am using Windows 7.

4

0 回答 0