This document will show you how to open remote access to SQL Server by configuring Windows Firewall.
To follow the steps in this document you will need to have one of the versions of SQL Server running on one of the versions of Windows mentioned above.
This article only applies to Windows Defender Firewall. Other Firewalls may have similar settings that can be applied.
It is also assumed that you have configured SQL Server for remote access, either manually, or by following the steps in How To: Configure SQL Server for Remote Access.
You need to be a member of the Administrators group to perform the steps in this document.
There are two methods for configuring Windows Firewall for SQL Server.
Choose one of the two methods below, that best suits your IT policy:
This method will target the specific ports SQL Server uses for communication.
From the Windows Defender Firewall with Advanced Security window:
Select Inbound Rules from the left hand column.
Click New Rule... from the Actions column.
Click Next.
Select Specific local ports.
Enter 1433.
Click Next.
Click Next.
Click Next.
For example: SQL TCP.
From the Windows Defender Firewall with Advanced Security window:
Select Inbound Rules from the left hand column.
Click New Rule... from the Actions column.
Click Next.
Select Specific local ports.
Enter 1434.
Click Next.
Click Next.
Click Next.
For example: SQL TCP.
Click Finish.
This method will open all ports for access to SQL Server.
Click the Allow another app... button.
Browse to sqlbrowser.exe
This is located in the default installation folder:
C:\Program Files (x86)\Microsoft SQL Server\90\Shared
Click the Add button.
Click the Allow another app... button.
Browse to sqlserver.exe
This is located in the default installation folder:
C:\Program Files\Microsoft SQL Server\<Version and Edition>\MSSQL\Binn
The Version and Edition folder depends on the installed SQL Server.
For instance:
Other versions and editions will be similarly named and cannot be confused with the other folders in the Microsoft SQL Server folder.
Click the Add button.
Knowledge Base Article Ref: | KB13103002 |
---|