Skip to content
ShabazTech

Notes of an IT Pro

ShabazTech

Notes of an IT Pro

  • Microsoft Azure
    • Compute
    • Governance
    • Identity
    • Networking
    • Security
    • Storage
  • Microsoft Entra ID
    • Identity
      • Application Management
      • Governance
    • Security
      • Authentication
      • Conditional Access
    • Global Secure Access
      • Internet Access
      • Private Access
  • Microsoft Intune
    • Apps
      • Microsoft365 Apps For Enterprise
    • Devices
      • Windows Clients
    • Monitoring
    • Security
  • Microsoft 365
    • Defender XDR
    • Purview
  • Microsoft OnPrem
    • AD DS
    • Failover Clustering
    • Hyper-V
    • Powershell
    • SQL Server
      • SQL Server 2008R2
      • SQL Server 2012
      • SQL Server 2016
    • System Center Configuration Manager
      • SCCM 2012R2
    • Windows Clients
    • Windows Server
      • Windows Server 2008R2
      • Windows Server 2012
      • Windows Server 2012R2
      • Windows Server 2016
  • Citrix
    • XenApp 6.5
    • XenApp and XenDesktop 7.6 LTSR
    • XenApp and Xendesktop 7.15 LTSR
  • About The Author
  • Microsoft Azure
    • Compute
    • Governance
    • Identity
    • Networking
    • Security
    • Storage
  • Microsoft Entra ID
    • Identity
      • Application Management
      • Governance
    • Security
      • Authentication
      • Conditional Access
    • Global Secure Access
      • Internet Access
      • Private Access
  • Microsoft Intune
    • Apps
      • Microsoft365 Apps For Enterprise
    • Devices
      • Windows Clients
    • Monitoring
    • Security
  • Microsoft 365
    • Defender XDR
    • Purview
  • Microsoft OnPrem
    • AD DS
    • Failover Clustering
    • Hyper-V
    • Powershell
    • SQL Server
      • SQL Server 2008R2
      • SQL Server 2012
      • SQL Server 2016
    • System Center Configuration Manager
      • SCCM 2012R2
    • Windows Clients
    • Windows Server
      • Windows Server 2008R2
      • Windows Server 2012
      • Windows Server 2012R2
      • Windows Server 2016
  • Citrix
    • XenApp 6.5
    • XenApp and XenDesktop 7.6 LTSR
    • XenApp and Xendesktop 7.15 LTSR
  • About The Author
Close

Search

Subscribe
MicrosoftSQL ServerSQL Server 2008R2SQL Server 2012SQL Server 2016

Configuring a SQL Server instance to listen on a specific TCP port

By Shabaz
October 14, 2017 3 Min Read
Comments Off on Configuring a SQL Server instance to listen on a specific TCP port
Updated on October 30, 2017

In this blog post we will look at how to configure an instance of the SQL Server Database Engine to listen on a specific fixed port. The default instance of a SQL Server Database Engine listens on TCP port 1433. Named instances on the other hand are by default configured for dynamic ports. This means they select an available port when the SQL Server service is started. Because the port selected might change every time that the Database Engine is started, this can pose a bit of a challenge if there is a firewall between the application server and the SQL server, which in most deployments there will be. Hence configuring the Database Engine to listen on a specific port, can be advantageous, and it’s also recommended by Microsoft to do this.

 

1. Start SQL Server Configuration Manager

2. Expand SQL Server Network Configuration, select the Database Engine instance you want to edit (Protocols for <instance name>), and then double-click TCP/IP

Here I for example have two instances, so I selected Protocols for INST01 beneath SQL Server Network Configuration

3. 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. (You will see both IP version 4 and IP version 6 addresses.)

4. The TCP Dynamic Ports field will contain a 0. This denotes that the Database Engine is listening on dynamic ports.

5. On the IP address you want to configure to listen on a static port, delete the 0 in the TCP Dynamic Ports field, and then assign a port number in the TCP Port field. Here I’m assigning port 60000 on all IP addresses. It’s not a multihomed server, so all of those IP addresses belong to the same NIC.

Click Apply and OK when you are done.

6. Click OK on the Warning.

7. In the console pane, click SQL Server Services

8. In the details pane, right-click SQL Server (<instance name>) and then click Restart, to stop and restart the service.

9. Or better yet, restart the server.

10. Run the following cmdlet from the application server to verify that the SQL Server is now indeed listening on port 60000.

Test-NetConnection SqlServerName -port 60000

Tags:

MicrosoftSQL Server
Author

Shabaz

Follow Me
Other Articles
Previous

Installing SQL Server 2016

Next

Installing VMware virtualization environment for XenDesktop 7.15 LTSR

Archives

Tags

Active Directory Citrix Failover Clustering Microsoft Powershell SCCM SCCM 2012R2 Server 2008R2 Server 2012 Server 2012R2 Server 2016 SQL Server Symantec VSF Test Labs Windows Clients Windows Server XenDesktop 7.6 LTSR Xendesktop 7.15 LTSR

Popular Posts

  • How to check if a machine is physical or virtual
  • Exporting multivalued attributes with Export-CSV cmdlet
  • Installing Remote Desktop License Server on Windows…
  • Configuring Remote Desktop Services Profile settings…
  • Installing Citrix XenApp and XenDesktop 7.15 LTSR
  • Enabling LDAPS with certificate from a 3rd party CA
  • Assigning ownership of files and folders with Takeown.exe
  • Retrieving User properties from Active Directory
  • SCCM 2012 R2 Client Installation
  • Citrix XenApp 6.5 Architectural Components
© 2014- 2026 — ShabazTech. All rights reserved.