Please note that you should check with your hosting provider to determine the best TCP Port to use for your specific security configuration.
First, configure SQL Server 2008 to allow remote connections.
- Click Start, point to All Programs, point to Microsoft SQL Server 2008 R2, point to Configuration Tools, and then click SQL Server Configuration Manager.
- Click SQL Server Services, make confirm SQL Server (SQLEXPRESS) and SQL Server Browser running.
- If SQL Server Browser is stopped, then select its properties and point to Service tab, change the Start Mode Disabled to Automatic, click the apply button, then click start option using right mouse click over SQL Server Browser.
- Click SQL Server Network Configuration, point to Protocols for SQLEXPRESS, point to TCP/IP, make sure TCP/IP status is Enabled.
- Open TCP/IP Properties form using right mouse click over TCP/IP, point to IP Address tab, point to TCP Port in Last section, change TCP Port to 1433, and click Apply button.
- Restart the SQL Server(SQLEXPRESS) using right mouse click over SQL Server(SQLEXPRESS).
Next, create an exception in Windows Firewall.
- Click Start, point to Control Panel, point to Windows Firewall Settings
- Click Change settings link, point to Exceptions tab
- Click Add port... button, do the following:
- Collapse
- Name: 1433
- Port number: 1433
- Protocol: TCP
- Click OK, and click apply.
Lastly, here's an alternative process to create exceptions in Windows Firewall.
- Click Start, point to Administrative Tools, open Windows Firewall with Advanced Security.
- Click Inbound Rules, Click New Rule link at the top of right section.
- Select Port radio button, click next.
- Select TCP radio button, Enter port number in Specific local ports section such as:
- Collapse
- Specific local ports: 1433
- Click next
- Select Allow the connection, click next button, again click next button
- Enter Name Ex. 1433
- Click Finish button