Configure SQL Server to listen on a specific TCP port - SQL Server (2024)

  • Article

Applies to: Configure SQL Server to listen on a specific TCP port - SQL Server (1) SQL Server

This article describes how to configure an instance of the SQL Server Database Engine to listen on a specific fixed port by using 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 connect 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.

Note

Because port 1433 is the known standard for SQL Server, some organizations specify that the SQL Server port number should be changed to enhance security. This might be helpful in some environments. However, the TCP/IP architecture permits a port scanner to query for open ports, so changing the port number isn't considered a robust security measure.

For more information about the default Windows Firewall settings, and a description of the TCP ports that affect the Database Engine, Analysis Services, Reporting Services, and Integration Services, see Configure the Windows Firewall to allow SQL Server access.

Tip

When selecting a port number, consult https://www.iana.org/assignments/port-numbers for a list of port numbers that are assigned to specific applications. Select an unassigned port number. For more information, see The default dynamic port range for TCP/IP has changed since Windows Vista and in Windows Server 2008.

Remarks

The Database Engine begins listening on a new port when restarted. However the SQL Server Browser service monitors the registry and reports the new port number as soon as the configuration is changed, even though the Database Engine might not be using it. Restart the Database Engine to ensure consistency and avoid connection failures.

Use SQL Server Configuration Manager

Assign a TCP/IP port number to the SQL Server Database Engine

  1. In SQL Server Configuration Manager, in the console pane, expand SQL Server Network Configuration, select Protocols for <instance name>, and then in the right pane double-click TCP/IP.

    Note

    If you have trouble opening SQL Server Configuration Manager, see SQL Server Configuration Manager.

  2. 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 entries 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 might see both IP version 4 and IP version 6 addresses.) Right-click each address, and then select Properties to identify the IP address that you want to configure.

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

    Configure SQL Server to listen on a specific TCP port - SQL Server (2)

  4. In the IP n Properties area box, in the TCP Port box, type the port number you want this IP address to listen on, and then select OK. Multiple ports might be specified by separating them with a comma. Select OK.

    If the Listen All setting on the Protocol tab is set to Yes, then only TCP Port and TCP Dynamic Port values under the IPAll section are used, and individual IP n sections are ignored in their entirety. If the Listen All setting is set to No, then the TCP Port and TCP Dynamic Port settings under the IPAll section are ignored, and the TCP Port, TCP Dynamic Port, and Enabled settings on the individual IP n sections are used instead.

    Each IP n section has an Enabled setting with a default value of "No" which causes SQL Server to ignore this IP address even if it has a port defined.

  5. In the console pane, select SQL Server Services.

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

Connect

After you configure SQL Server to listen on a specific port, there are three ways to connect to a specific port with a client application:

  • To connect to the Database Engine instance by name, run the SQL Server Browser service on the server.
  • Create an alias on the client, specifying the port number.
  • Program the client to connect using a custom connection string.

Related content

  • Create or delete a server alias for use by a client
  • SQL Server Browser service
Configure SQL Server to listen on a specific TCP port - SQL Server (2024)
Top Articles
Where the “7% Return” Comes from in Investing — Millennial Money with Katie
How To Stop Spending Money on Fast Food and Other Junk - Partners in Fire
Maxtrack Live
Mchoul Funeral Home Of Fishkill Inc. Services
Sprinter Tyrone's Unblocked Games
Restaurer Triple Vitrage
Kokichi's Day At The Zoo
Chalupp's Pizza Taos Menu
5 Bijwerkingen van zwemmen in een zwembad met te veel chloor - Bereik uw gezondheidsdoelen met praktische hulpmiddelen voor eten en fitness, deskundige bronnen en een betrokken gemeenschap.
Mail Healthcare Uiowa
Top Golf 3000 Clubs
Corporate Homepage | Publix Super Markets
Es.cvs.com/Otchs/Devoted
Shooting Games Multiplayer Unblocked
7 Fly Traps For Effective Pest Control
Check From Po Box 1111 Charlotte Nc 28201
Parent Resources - Padua Franciscan High School
Craigslist In Visalia California
Hdmovie2 Sbs
Transactions (zipForm Edition) | Lone Wolf | Real Estate Forms Software
Noaa Duluth Mn
Parc Soleil Drowning
Free Personals Like Craigslist Nh
If you have a Keurig, then try these hot cocoa options
Brbl Barber Shop
Del Amo Fashion Center Map
The best brunch spots in Berlin
Horn Rank
Select Truck Greensboro
Wat is een hickmann?
Meet the Characters of Disney’s ‘Moana’
Lacey Costco Gas Price
Sandals Travel Agent Login
How rich were the McCallisters in 'Home Alone'? Family's income unveiled
What is Software Defined Networking (SDN)? - GeeksforGeeks
Craigslist Sf Garage Sales
Craigslist/Phx
Math Minor Umn
Napa Autocare Locator
Waffle House Gift Card Cvs
Acadis Portal Missouri
Bismarck Mandan Mugshots
Gpa Calculator Georgia Tech
Fapello.clm
What is 'Breaking Bad' star Aaron Paul's Net Worth?
From Grindr to Scruff: The best dating apps for gay, bi, and queer men in 2024
303-615-0055
Southwind Village, Southend Village, Southwood Village, Supervision Of Alcohol Sales In Church And Village Halls
Craigslist Yard Sales In Murrells Inlet
Craigslist Charlestown Indiana
Saw X (2023) | Film, Trailer, Kritik
Cataz.net Android Movies Apk
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 6133

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.