Can't connect to external MSSQL database

I have a website that connects to a MSSQL database on a different server. I have set up a username and password to allow external access to it and it works fine in Docker when run locally. However when I upload it to Fly I get the following error:

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host , port 1433 has failed.

What do I need to do to allow the connection from fly to the external database?

FYI - I am new to fly so detailed instructions or a link to a tutorial would be really helpful.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.