I’m experiencing an issue with my Node.js application deployed on Render. The application includes a front-end and back-end, and it connects to a MySQL database hosted on a separate server. While the connection works perfectly when tested locally, I encounter the following error when the app is deployed on Render:
Error: connect ECONNREFUSED 130.162.54.212:3306
Just to mention that until yesterday, everything was working fine.
Could this issue be related to network settings or firewall rules on Render’s side? Are there specific IP addresses or ranges from Render that need to be whitelisted on my database server?
Additionally, if SSL/TLS is required for the connection, could you please guide me on how to configure it in the Render environment?
It’s unlikely that this is the fault of Render itself. Please see Static Outbound IP Addresses – Render Docs regarding the IP addresses Render would use for external communication. SSL/TLS is client/code dependent, there is no single way to accomplish it. It depends on your utility, code language, framework, etc.