MSSQL database connection error- Error: ConnectionError: Failed to connect to {...}:1433 in 15000ms

Hi, I am trying to access the mssql database via render with tedious JavaScript, but it brings out this kind of error. I can confirm that the configurations work in localhost, and I can access the database records, it is only during when using the deployment platform that it releases this kind of error. I used the ip address of the server to connect to it, but still the same error.

Error: ConnectionError: Failed to connect to {…}:1433 in 15000ms

Mar 26 12:31:02 PM at Connection.connectTimeout (/opt/render/project/src/node_modules/tedious/lib/connection.js:1207:26)

Mar 26 12:31:02 PM at Timeout._onTimeout (/opt/render/project/src/node_modules/tedious/lib/connection.js:1152:12)

Mar 26 12:31:02 PM at listOnTimeout (node:internal/timers:573:17)

Mar 26 12:31:02 PM at process.processTimers (node:internal/timers:514:7) {

Mar 26 12:31:02 PM code: ‘ETIMEOUT’

Mar 26 12:31:02 PM}

Other Details:

This is probably not a problem with Render, you should check the configuration of the MSSQL database / its host to see if there is an explicit list of IPs allowed to connect. If so, see Static Outbound IP Addresses | Render Docs

Thanks, I will do this for now