Service works with `curl localhost:3000` on the box but times out from other hosts.
BeginnerTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → App bound to loopback, host firewall blocks the port, or the cloud security group does not allow it.
Diagnose →
ss -ltnp | grep 3000 # 127.0.0.1:3000 vs 0.0.0.0:3000 / *:3000
sudo ufw status verbose; sudo nft list ruleset | head -50
Fix → Bind to 0.0.0.0 (Node: app.listen(3000, '0.0.0.0'); Flask: --host 0.0.0.0). Open the port in ufw/nftables and the security group from the right source CIDR only.
Prevent → Make bind address a config value and test from a second host in CI smoke tests.
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`Beginner`ping` works but `curl` to port 80 on the same host times out.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