How To connect Webhost In SQL (Complete Guide)
(Port)
To open a port in the Windows firewall for TCP access
1: On the Start menu, click Run, type WF.msc, and then click
OK.
2: In the Windows Firewall with Advanced Security, in the
left pane, right-click Inbound Rules, and then click New Rule in the action
pane.
3: In the Rule Type dialog box, select Port, and then click
Next.
4: In the Protocol and Ports dialog box, select TCP. Select
Specific local ports, and then type the port number of the instance of the
Database Engine, such as 1433 for the default instance. Click Next.
5: In the Action dialog box, select Allow the connection,
and then click Next.
6: In the Profile dialog box, select any profiles that
describe the computer connection environment when you want to connect to the
Database Engine, and then click Next.
7: In the Name dialog box, type a name and description for
this rule, and then click Finish.
(Program)
To open access to SQL Server when using dynamic ports
1: On the Start menu, click Run, type WF.msc, and then click
OK.
2: In the Windows Firewall with Advanced Security, in the
left pane, right-click Inbound Rules, and then click New Rule in the action
pane.
3: In the Rule Type dialog box, select Program, and then
click Next.
4: In the Program dialog box, select This program path.
Click Browse, and navigate to the instance of SQL Server that you want to
access through the firewall, and then click Open. By default, SQL Server is at
C:\Program Files\Microsoft SQL
Server\MSSQL12.MSSQLSERVER\MSSQL\Binn\Sqlservr.exe. Click Next.
5: In the Action dialog box, select Allow the connection,
and then click Next.
6: In the Profile dialog box, select any profiles that describe
the computer connection environment when you want to connect to the Database
Engine, and then click Next.
7: In the Name dialog box, type a name and description for
this rule, and then click Finish.