MS SQL Server 2012 - DBA Articles

Configure a Server to Listen on a Specific TCP Port



In computer networking, a port is an application-specific or process-specific software construct serving as a communications endpoint in a computer's host operating system. The purpose of ports is to uniquely identify different applications or processes running on a single computer and thereby enable them to share a single physical connection to a packet-switched network like the Internet. In the context of the Internet Protocol, a port is associated with an IP address of the host, as well as the type of protocol used for communication.

This article describes how to configure an instance of the SQL Server Database Engine to listen on a specific fixed port by using the SQL Server Configuration Manager. If enabled, the default instance of the SQL Server Database Engine listens on TCP port 1433.



Named instances of the Database Engine and SQL Server Compact are configured for dynamic ports. This means they select an available port when the SQL Server service is started. When you are connecting to a named instance through a firewall, configure the Database Engine to listen on a specific port, so that the appropriate port can be opened in the firewall.



In Windows 8 Environment, to open SQL Server Configuration Manager, in the Search charm, under Apps, type SQLServerManager11.msc (for SQL Server 2012) or SQLServerManager10.msc for (for SQL Server 2008), and then press Enter Key.

In SQL Server Configuration Manager, in the console pane, expand SQL Server Network Configuration.



Expand Protocols for .



In the detail pane, right-click TCP/IP and then click Properties menu option.



In the TCP/IP Properties dialog box, on the IP Addresses tab, several IP addresses appear in the format IP1, IP2, up to IPAll. One of these is for the IP address of the loopback adapter, 127.0.0.1. Additional IP addresses appear for each IP Address on the computer.

If the TCP Dynamic Ports dialog box contains 0, indicating the Database Engine is listening on dynamic ports, delete the 0.



In the IPn Properties area box, in the TCP Port box, type the port number you want this IP address to listen on and empty the TCP Dynamic Ports box.



To continue, click OK. System displays warning message window. Just click OK.



In the console pane, click SQL Server Services.



In the details pane, right-click SQL Server () and then click Restart, to stop and restart SQL Server.









In SQL Server Configuration Manager, in the console pane, expand SQL Server Network Configuration and then expand Protocols for .



In the detail pane, right-click TCP/IP and then click Properties menu option.



Review the updated PORT information.



More Reference URL: http://msdn.microsoft.com/en-us/library/ms177440%28v=sql.110%29.aspx

* * * * *


Email Your Comment To AUTHOR