Windows Defender denying connection (MS Server 2019 & SQL Express 2019)

I just wanted to log this in case anyone else comes across it. I just did a fresh install of Windows Server 2019 and SQL Express 2019. After following the install instructions for installing the SQL server here ( it was still denying a connection on the client. This was validated by disabling Windows Defender after which the client computer connected fine.

After looking through the firewall settings it appears that even though the firewall ports were allowed for 1433 it still couldn’t establish a connection since SQL Instance will be on a random/dynamic port which the SQL Browser will direct the connection to ( After adding both SQL Server and SQL Browser executables (which can be identified in the server’s services directory) the connection was fine. I didn’t have this issue with the installation with previous versions of Windows.


The best option for this is to change the port to use only 1433 and open that in the firewall.

But your solution works as well.

I opened the port as explained in the install instructions. That still denied connection until I allowed the app.

No I don’t mean open the port. I mean turn off dynamic port assignment and force it to 1433

I am about to go to bed so I can’t really show how to do that until am. I’ll post some screenshots in the morning.

1 Like

I missed that step. TCP Dynamic Ports: 0. No need to post. Go to bed already.

1 Like