Command line :

netsh advfirewall firewall add rule name="SQL Server" dir=in action=allow localport=1433 protocol=TCP
netsh advfirewall firewall add rule name="SQL Browser" dir=in action=allow localport=1434 protocol=UDP
netsh advfirewall firewall add rule name="SQL Admin Connection" dir=in action=allow localport=1434 protocol=TCP
netsh advfirewall firewall add rule name="SQL Service Broker" dir=in action=allow localport=4022 protocol=TCP
netsh advfirewall firewall add rule name="SQL Mirror Port" dir=in action=allow localport=5022 protocol=TCP

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.