Programmatically add an application to Windows Firewall ?
-
Hi,
I'm coding an FTP server , everything works as expected, but the main issue is if the firewall is on, the server cant be reached because it is blocking the oncoming connection to the specified port.
so how to Programmatically add the FTP server to Windows Firewall ?
-
You could go hardcore and use the com-interface
https://msdn.microsoft.com/en-us/library/aa364726(VS.85).aspx
or use the NSIS Simple Firewall Plugin
and create an installer that can add the rules and install your ftp server.