Add executable to firewall

  • Thread starter Thread starter Francisco Matamoros
  • Start date Start date
F

Francisco Matamoros

Hello, first at all, sorry for my english, I'm spanish.

I need to add an executable to the windows's firewall. I want to do it from
c# code because I use a aleatory port generated in real-time. When the tcp
port don't register traffic during two or three minutes the firewall close
this port. I probe this add manually the executable to the firewall, but I
want do it each execution of my code.
If someone was indicating me where to find an example or technical
documentation I will be very grateful.

Thanks.
 
Francisco Matamoros said:
Hello, first at all, sorry for my english, I'm spanish.

I need to add an executable to the windows's firewall. I want to do it
from c# code because I use a aleatory port generated in real-time. When
the tcp port don't register traffic during two or three minutes the
firewall close this port. I probe this add manually the executable to the
firewall, but I want do it each execution of my code.
If someone was indicating me where to find an example or technical
documentation I will be very grateful.

http://msdn2.microsoft.com/en-us/library/aa364679.aspx
 
Back
Top