wcf - open firewall popup to unlock C# app -
i want unlock c# on windows firewall(win7/vista), opening windows security alert add firewall execption exception list. i'am using servicehost running wcf service on console app.
thanks
use netsh advfirewall open ports want or allow program in/out:
see here documentation on netsh advfirewall: http://technet.microsoft.com/en-us/library/dd734783(ws.10).aspx http://support.microsoft.com/kb/947709
some samples:
enable program netsh advfirewall firewall add rule name=”my application” dir=in action=allow program=”c:\myapp\myapp.exe” enable=yes
open tcp port 16240 netsh advfirewall firewall add rule name="myopenport" protocol=tcp dir=out localport=16240 action=allow
Comments
Post a Comment