SQL Server 2016 allow remote connection installed on windows server 2016

Scenario:

You have SQL Server 2016 installed on a Windows Server 2016 and you wish to allow remote connection to the server from your local area network computers.

The following configuration solution is only meant to demonstrate for a LAN scenario within the same network segment. If you need to connect from outside your LAN segment, you’ll have to jump through probably a few more firewall hoops that are in between your connecting computer and the SQL Server Instance.

 

Solution:

To allow SQL Server 2016 on your Windows Server 2016 to be connected remotely, you will have to do the followings.

  1. Open the inbound firewall for the Windows Server 2016, to allow the SQL Server 2016 TCP port incoming traffic
  2. Enable SQL Server TCP/IP traffic listening via the SQL Server Configuration Manager

Once you are done with the two things, test your connection, and it should work!

 

Followings are the instructions.


Open the inbound firewall for the Windows Server 2016, to allow the SQL Server 2016 TCP port incoming traffic

Launch Windows Firewall with Advanced Secuirty, and create a new inbound Port rule.
windows-2016-firewall-inbound-new-port-01

Set the TCP port to SQL Server default port of 1433.
windows-2016-firewall-inbound-new-port-02-tcp-1433

Allow the connection.
windows-2016-firewall-inbound-new-port-03-tcp-1433-allow-connection

Allow connection from the specific network location choices.
windows-2016-firewall-inbound-new-port-04-tcp-1433-allow-connection-network

Give a name to your firewall rule.
windows-2016-firewall-inbound-new-port-05-tcp-1433-allow-connection-name

You are finished with the server firewall configuration.

 


Enable TCP/IP traffic listen from the SQL Server Configuration Manager

Launch SQL Server Configuration Manager.
sql-server-configuration-manager-13-01

Enable TCP/IP.
sql-server-configuration-manager-13-02-tcp-enable

For the TCP/IP Properties, Set IPAll to listen to TCP Port 1433 (the default port for SQL Server).
sql-server-configuration-manager-13-03-port-listen

Restart the SQL Server Service to effect the changes.
sql-server-configuration-manager-13-04-service-restart

Your SQL Server is now ready to accept remote connections.

 


Test your connection (SQL Management Studio Connecting Example).

Launch SQL Management Studio and key in your [target server]\instance,port. Then Connect…

In my case, it is TheServer\MSSQL2016,1433
sql-server-2016-remote-connect

That’s all to it! Enjoy your remote connection!!!

 

 



Ad: Vodien: Affordable, Reliable and Professional Singapore Web Hosting
Vodien: Affordable, Reliable and Professional Singapore Web Hosting