A connection to a remote port hangs for exactly 21 seconds on Windows clients or ~127 seconds on Linux before failing.
IntermediateTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → SYN retransmissions with exponential backoff. Linux default net.ipv4.tcp_syn_retries = 6 gives roughly 127 s. This always means silent drops, never a reachable closed port.
Diagnose →
sysctl net.ipv4.tcp_syn_retries
sudo tcpdump -ni any 'tcp[tcpflags] == tcp-syn' and host <dst>
Fix → Find the dropping filter. In the app, set connect timeouts explicitly rather than relying on kernel retries.
Prevent → Every client library call gets a connect timeout of a few seconds.
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`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