Packets are dropped before a connection opens
CommonA security group, network ACL or firewall drops the traffic silently, or the address is on a network this machine cannot route to.
Confirm
curl -v --connect-timeout 5 URL 2>&1 | grep -E 'Trying|Connected|Timeout'
Trying ADDRESS:PORT and then a timeout, never Connected
Fix
- Open the port for this source in the security group or firewall, or call an address reachable from here.
- For AWS, check both the security group of the target and the route from the caller's subnet.