The error message wasn’t wrong. It just wasn’t complete.

Ensure your application host can reach the database host.

If you want, I can:

(hangs or "Connection refused"):