Opening and closing TCP ports on Windows Firewall


  • Hello everyone.

    I need to open TCP ports on Windows Firewall, from my application to access SQL Server to liberate to the user of this task.

    Is there any API in .Net to open or close TCP ports on Windows Firewall?

    Is there any API in .Net to assign a port to SQL Server for the port is listening?

    Thanks in advance.

    Friday, May 28, 2010 4:48 AM


All replies