Refused vs Timed Out
curl to a server's port 8080 fails with "Connection refused" immediately. What does that tell you?
curl
Choose one answer
The host replied, but nothing listens on that port.
The server's certificate is invalid.
DNS couldn't resolve the hostname before the connection timed out.
A firewall silently drops the packets.