I have having trouble accessing a SQL Server located on the host

I have a couple containers that contain ASP.Net Core MicroServices. I need to connect to a SQL Server database thats external to the container. I have tried using the IP address of the server along with the port number, to no avail. I have even created a new network and that isnt working either.

Any ideas ?