Connection Refused vs Timeout
nc -vz 10.0.2.15 5432 returns "Connection refused" immediately. What does that tell you?
nc -vz 10.0.2.15 5432
Part of Cloud Architecture in Practice. Next step: Carve Subnets Out of an Address Block
Choose one answer
The host answered with a TCP RST: nothing is listening on that port.
A firewall on the path dropped the packets before they reached the host.
The host doesn't exist, so the router replied on its behalf.
The service accepted the connection but rejected the client's credentials.