`ping` works but `curl` to port 80 on the same host times out.
BeginnerTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → ICMP is allowed but TCP/80 is filtered (SG, NACL, host firewall), or the service is down and a firewall drops instead of rejecting.
Diagnose →
nc -vz -w 3 host 80
sudo tcpdump -ni eth0 port 80 # on the server
Fix → Allow TCP/80 in the relevant filter. Ping only proves layer 3 reachability; it says nothing about a TCP port.
Prevent → Health-check the actual port and protocol, not ICMP.
More on Connectivity: refused, timed out, no route
`curl: (7) Failed to connect to 10.0.2.15 port 8080: Connection refused`Beginner`curl: (28) Failed to connect to api.internal port 443 after 130001 ms: Connection timed out`Beginner`ssh: connect to host 10.1.4.20 port 22: No route to host`BeginnerService works with `curl localhost:3000` on the box but times out from other hosts.Beginner`curl` to a public site works, but `ping 8.8.8.8` shows 100% packet loss.Beginner`nc: connect to db.internal port 5432 (tcp) failed: Connection refused`, yet PostgreSQL is running.Beginner