I’m having trouble with connecting to a Remote SQL Server Instance.
My container, right now, is fairly basic, it just contains a WebApi2 Website, using microsoft/iis as the base image.
Our SQL Server is hosted on a Development server elsewhere on our network.
Running the application on my machine connects to the server just fine, but through the container it is not able to connect.
The SQL Server is an instance, and I have tried multiple connection strings (with and without ports), and added the server to the Hosts file, etc. All with no luck. I keep getting Unable to find server, or timeout errors.
Also - I ran another test, where my WebAPI would just make a call to our production API through a regular web call, and that request also did not go out.
There is no firewall for the SQL Server for internal traffic.
I’ve done some packet tracing, and there are no packets coming out of this container to any of the other servers. The only traffic I see is the requests being made to the WebApi, and it’s response.
It sounds to me like there is a firewall in the container that is preventing outbound connections?