Unable to connect to the database through the public network, it return "Connection refused"

This issue still persists. Is there a workaround?

Related ticket Database Connection Refused