Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every time I try and connect to a remote SQLServer Express instance on my AWS server I get a network or instance specific error.

What I have tried so far:

I ensured that the Security Group applied to the instance has an inbound rule for Port 1433 for all source connections (

I initially added an exception to the Windows Firewall for TCP 1433 and eventually disabled Windows Firewall altogether to take that out of the equation. Currently it is still disabled.

I assumed I would need a public IP address so I assigned an Elastic IP to the instance. I can RDP into the server using this Elastic IP so I know the association is good.

I enabled TCP as a client connection protocol for the SQL Server instance.

When I RDP into the server and do an IPCONFIG /ALL I assumed I would see the IP address to to be the same as the Elastic IP assigned but that is not the case, I still see the private internal IP address, I'm not sure if this is part of my problem as you see from my local connection tests below.

When remoted into the server I can successfully connect to SQL Server Management Studio uwing the local loopback address + instance name:\SQLEXPRESS. I can also successfully connect to SSMS using the private IP + instance name:\SQLEXPRESS. This would seem to indicate that the TCP client protocol for SQLServer is enabled and working normally. However when I try and connect SSMS locally but using my Elastic IP address + instance name I get the same network connectivity error I get when I attempt to connect from my local PC remotely.

So even though I can establish an RDP connection to the server using my Elastic IP address it appears the Elastic IP isn't being associated internally or with SQL Server.

Any ideas?

share|improve this question

You actually need to enable Remote Tcp/IP connectivity in SQL Express. by default, every type of remote connectivity is disabled. you can enable it through this article: or

share|improve this answer

Set inbound rules for AWS

TCP port 1433 But with UDP port is 1434

With two rules with port 1433, public IP can not connect to SQL server instance.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.