Interview Prep/Networking/Connectivity: refused, timed out, no route

`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.

All Networking questions Roadmap: Networking for DevOps

More on Connectivity: refused, timed out, no route