How to configure the SQL server to listen on a specific port?
Owing to security issues it is often not recommended to use the default port number 1433 for communicating with the SQL server. This article helps set up the SQL server to use a non-standard port number.
- Run the SQL Server Configuration Manager.
- Select the SQL Server Network Configuration.
- Select from the list the instance you want to configure to listen to on a specific port.
- To change the port assignment right-click on the TCP/IP protocol and select Properties.
- Click on the IP Addresses tab.
Note: Both IP5 and IP6 are disabled and the TCP Dynamic Ports setting is set to “0”, which means that the database engine is listening on dynamic ports. This instance currently uses port number 1433.
- Specify the port number you want to use instead of 1433 by entering the preferred port number. In this case the new port number is going to be 8181. Also, turn off the dynamical port number setting by removing the “0” mark in the TCP Dynamic Ports field.
- In order to finish the adjustment, select SQL Server Services, click on SQL Server and restart it.