Configure SQL Server to listen on a specific port
Setp 2:
- In SQL Server Configuration Manager, expand SQL Server Network Configuration, and then click on the server instance you want to configure.
- In the right pane, double-click TCP/IP.
- In the TCP/IP Properties dialog box, click the IP Addresses tab.
- In the TCP Port box of the IPAll section, type an available port number. For this tutorial, we will use 49172.
- Click OK to close the dialog box, and click OK to the warning that the service must be restarted.
- In the left pane, click SQL Server Services.
- In the right pane, right-click the instance of SQL Server, and then click Restart. When the Database Engine restarts, it will listen on port 49172.
To open a port in the Windows firewall for TCP access
Step 1
- On the Start menu, click Run, type WF.msc, and then click OK.
- In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.
- In the Rule Type dialog box, select Port, and then click Next.
- In the Protocol and Ports dialog box, select TCP. Select Specific local ports, and then type the port number of the instance of the Database Engine. Type 1433 for the default instance. Type 49172 if you are configuring a named instance and configured a fixed port in the previous task. Click Next.
- In the Action dialog box, select Allow the connection, and then click Next.
- In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.
- In the Name dialog box, type a name and description for this rule, and then click Finish.
Setp 2:
- On the Start menu, click Control Panel.
- In Control Panel, click Network and Internet Connections, and then open Windows Firewall.
- In Windows Firewall, click the Exceptions tab, and then click Add Port.
- In the Add a Port dialog box, in the Name box, type SQL Server "instanceName".
- In the Port number box, type the port number of the Database Engine instance. Type 1433 for the default instance. Type 49172 if you are configuring a named instance and configured a fixed port in the previous task. Verify that TCP is selected, and then click OK.






0 comments:
Post a Comment