-- How Do I? --

Configuring TCP Ports and Windows Firewall

The procedures below are required to configuring TCP ports and the Windows Firewall for SQL Server 2012.

ClosedEnabling TCP/IP for SQL Server Configuration Manager

  1. Click Start | All Programs | Microsoft SQL Server 2012 | Configuration Tools | SQL Server Configuration Manager.
  2. Click SQL Server Network Configuration (32bit) | Protocols for MSSQLSERVER and ensure TCP/IP is set to Enabled.
  3. Click SQL Server Network Configuration (32bit) | Protocols for SQLEXPRESS and ensure TCP/IP is set to Enabled.
  4. Click SQL Native Client 11.0 Configuration (32bit) | Client Protocols and ensure TCP/IP is set to Enabled.
  5. Click Server Network Configuration | Protocols for SQLEXPRESS2012 and ensure TCP/IP is set to Enabled.
  6. Click Native Client 11.0 Configuration | Client Protocols and ensure TCP/IP is set to Enabled.

ClosedOpening Access to SQL Server When Using Dynamic Ports

  1. Navigate to the Control Panel | System and Security | Windows Firewall | Advanced settings.

  2. On the left pane, click Inbound Rules. Right-click Inbound Rules and select New Rule. The New Inbound Rule Wizard opens.

  3. Select Program and click Next.

  4. Click This program path and type or click Browse to "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\MSSQL\Binn\Sqlservr.exe" and click Next.

  5. In the Action page, click Allow the connection and click Next.

  6. In the Profile page, select any profile(s) that describe the computer connection environment when you want to connect to the Database Engine, and click Next.

  7. In the Name page, type a name and description for the rule and click Finish.

ClosedConfiguring Windows Firewall for SQL Server

  1. Navigate to the Control Panel | System and Security | Windows Firewall | Advanced settings.

  2. On the left pane, click Inbound Rules. Right-click Inbound Rules and select New Rule. The New Inbound Rule Wizard opens.

  3. Click Port and click Next.

  4. Click TCP | Specific local ports and type "1433-1434" and click Next.

  5. In the Action page, select Allow the connection and click Next.

  6. In the Profile page, select any profile(s) that describe the computer connection environment when you want to connect to the Database Engine, and click Next.

  7. In the Name page, type a name and description for the rule and click Finish.

  8. Create a New Rule for UDP port 1433-1434 by repeating steps 2-7 above, but altering step 4 by clicking UDP instead of TCP.
  9. Create a New Rule for TCP port 445 by repeating steps 2-7 above, but altering step 4 by typing "445" in the Specific local ports field.

ClosedRestarting the SQL Server Database

  1. Navigate to Start | All Programs | Microsoft SQL Server | SQL Server Management Studio.
  2. In Database Engine, right-click your database and select Restart.

Related Topics