Opening Ports SQL Server Instances

They recently blocked all ports of our SQL Server. The server has different instances, and opening port 1433 does not work. What do we need to open to allow access to SQL Server?

+3
source share
3 answers

On the computer where the server instance is installed:

  • Run the SQL Server Configuration Manager utility.
  • Open the SQL Server node network configuration in the management tree, you will see one child node for each server instance.
  • For each instance, select its node and mark whether TCP / IP is enabled (if it is not enabled, there is no port).
  • Right-click the TCP / IP protocol entry and select Properties from the context menu. The TCP / IP Properties dialog box opens.
  • Click the IP Address tab and scroll down to the IPAll section to view the TCP port.

If you have not configured your servers before, you are probably using dynamic ports. This is not what you want, as the port may change: it will invalidate the firewall settings. So, just clear the TCP Dynamic Ports entry and enter the current dynamic port number in the TCP port entry for IPAll. After restarting the server instance, the server will be bound to this port.

One note: if you want to refer to servers outside the firewall by instance name, you need to enable SQL Server browser through the firewall, which is UDP port 1434. In my opinion, it is better to refer to instances via the port from the outside and not worry about the SQL browser . For example, instead of MYSERVER\SQLEXPRESS in your connection string, use MYSERVER.mydomain.com,12345 (in this example, SQLEXPRESS runs on port 12345). Note that the port syntax in the connection string uses a comma separator instead of the colon separator used for http uri.

+7
source

You must set different ports for each instance (or several ips with the same port) Go to "SQL Server Configuration Manager", go to "SQL Server Network Configuration", select the protocols for the first instance, double-click TCP / IP, select the "IP address" tab, at the end you will see the "IPAll" group, edit the tcp port and place 1433 and delete the value in the "Dinamic ports tcp", restart the service. Do the same with the following instances, but change 1433 from 1434, 1435 or whatever you want. Then open your ports in the firewall.

+1
source

Go to the "SQL Server Network Configuration" section, click "TCP / IP" and go to the "ip address" from the properties, and then in the IP4 parameter "Enabled" select "Yes" from "No", then click "Apply" and OK. Then go to "SQL Server Services", then stop starting

0
source

Source: https://habr.com/ru/post/1499427/


All Articles