Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (2024)

How To: Configure Windows Firewall for SQL Server

This document will show you how to open remote access to SQL Server by configuring Windows Firewall.

Applies To

  • Windows 8.1
  • Windows 10
  • Windows Server 2016
  • Windows Server 2019
  • Microsoft SQL Server Express/Standard or higher editions 2012 or later.
  • Microsoft SQL Server Compact Edition 4.0 or later.

Prerequisites

To follow the steps in this document you will need to have one of the versions of SQL Server running on one of the versions of Windows mentioned above.

This article only applies to Windows Defender Firewall. Other Firewalls may have similar settings that can be applied.

It is also assumed that you have configured SQL Server for remote access, either manually, or by following the steps in How To: Configure SQL Server for Remote Access.

You need to be a member of the Administrators group to perform the steps in this document.

Configure Windows Firewall

There are two methods for configuring Windows Firewall for SQL Server.

Choose one of the two methods below, that best suits your IT policy:

  • Create Inbound Rules for the SQL Server Ports
  • Allow the SQL Server applications in the Firewall

Create Inbound Rules for the SQL Server Ports

This method will target the specific ports SQL Server uses for communication.

  1. Open Windows Control Panel and select System and Security.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (1)

  2. From the System and Security window, click Windows Defender Firewall.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (2)

  3. From the Windows Defender Firewall window, click Advanced Settings.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (3)

  4. Add the port SQL uses for TCP.

    From the Windows Defender Firewall with Advanced Security window:

    Select Inbound Rules from the left hand column.

    Click New Rule... from the Actions column.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (4)

  5. From the New Inbound Rule Wizard, select Port.

    Click Next.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (5)

  6. Select TCP.

    Select Specific local ports.

    Enter 1433.

    Click Next.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (6)

  7. Select Allow the connection.

    Click Next.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (7)

  8. Select Domain, Private and Public.

    Click Next.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (8)

  9. Enter a name for the rule.

    For example: SQL TCP.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (9)

  10. Add the port SQL uses for UDP.

    From the Windows Defender Firewall with Advanced Security window:

    Select Inbound Rules from the left hand column.

    Click New Rule... from the Actions column.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (10)

  11. From the New Inbound Rule Wizard, select Port.

    Click Next.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (11)

  12. Select UDP.

    Select Specific local ports.

    Enter 1434.

    Click Next.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (12)

  13. Select Allow the connection.

    Click Next.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (13)

  14. Select Domain, Private and Public.

    Click Next.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (14)

  15. Enter a name for the rule.

    For example: SQL TCP.

    Click Finish.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (15)

Allow the SQL Server applications in the Firewall

This method will open all ports for access to SQL Server.

  1. Open Windows Control Panel and select System and Security.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (16)

  2. From the System and Security window, click the link to Allow an app through Windows Firewall.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (17)

  3. Allow the SQL Server Browser:

    Click the Allow another app... button.

    If your Windows Firewall settings are managed by your system administrator, you may need to click the Change Settings button.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (18)

  4. Click the Browse button.

    Browse to sqlbrowser.exe

    This is located in the default installation folder:

    C:\Program Files (x86)\Microsoft SQL Server\90\Shared

    Click the Add button.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (19)

  5. Allow the SQL Server Application:

    Click the Allow another app... button.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (20)

  6. Click the Browse button.

    Browse to sqlserver.exe

    This is located in the default installation folder:

    C:\Program Files\Microsoft SQL Server\<Version and Edition>\MSSQL\Binn

    Version and Edition

    The Version and Edition folder depends on the installed SQL Server.

    For instance:

    • SQL Server 2012 (Express) is located within the folder MSSQL11.SQLEXPRESS
    • SQL Server 2017 (Express) is located within the folder MSSQL14.SQLEXPRESS

    Other versions and editions will be similarly named and cannot be confused with the other folders in the Microsoft SQL Server folder.

    Click the Add button.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (21)

  7. Click the OK button to save and apply the changes.

    Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (22)

Knowledge Base Article Ref:KB13103002
Configure Windows Firewall for SQL Server (KB13103002) (DriveWorks Documentation) (2024)
Top Articles
How do I receive a wire transfer to my account?
What Commodities are Mined in the U.S.?
Omega Pizza-Roast Beef -Seafood Middleton Menu
WALB Locker Room Report Week 5 2024
neither of the twins was arrested,传说中的800句记7000词
His Lost Lycan Luna Chapter 5
Workday Latech Edu
Here are all the MTV VMA winners, even the awards they announced during the ads
Sissy Hypno Gif
Gunshots, panic and then fury - BBC correspondent's account of Trump shooting
Tv Schedule Today No Cable
Mndot Road Closures
Nieuwe en jong gebruikte campers
B67 Bus Time
Geometry Escape Challenge A Answer Key
Pwc Transparency Report
Moparts Com Forum
Jenn Pellegrino Photos
Equipamentos Hospitalares Diversos (Lote 98)
Virginia New Year's Millionaire Raffle 2022
Zalog Forum
Bridge.trihealth
Yard Goats Score
Kringloopwinkel Second Sale Roosendaal - Leemstraat 4e
Clare Briggs Guzman
Ivegore Machete Mutolation
A Person That Creates Movie Basis Figgerits
The Boogeyman (Film, 2023) - MovieMeter.nl
What Is a Yurt Tent?
Wku Lpn To Rn
4.231 Rounded To The Nearest Hundred
Tu Housing Portal
How often should you visit your Barber?
What does wym mean?
Rocksteady Steakhouse Menu
What Happened To Father Anthony Mary Ewtn
Metra Union Pacific West Schedule
Audi Q3 | 2023 - 2024 | De Waal Autogroep
Tenant Vs. Occupant: Is There Really A Difference Between Them?
Solemn Behavior Antonym
Weapons Storehouse Nyt Crossword
Wisconsin Women's Volleyball Team Leaked Pictures
Japanese Big Natural Boobs
Ursula Creed Datasheet
Pulaski County Ky Mugshots Busted Newspaper
Academic Notice and Subject to Dismissal
Cult Collectibles - True Crime, Cults, and Murderabilia
Arginina - co to jest, właściwości, zastosowanie oraz przeciwwskazania
Otter Bustr
Texas 4A Baseball
Supervisor-Managing Your Teams Risk – 3455 questions with correct answers
Latest Posts
Article information

Author: Moshe Kshlerin

Last Updated:

Views: 6756

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Moshe Kshlerin

Birthday: 1994-01-25

Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

Phone: +2424755286529

Job: District Education Designer

Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.