Connections to a server alternate between working and "Connection refused" on every other attempt.
IntermediateTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → The name or VIP maps to two backends and one has the service down; a load balancer with one dead target and no health check; duplicate IP on the subnet (two MACs answering ARP).
Diagnose →
dig +short app.internal # multiple A records?
for i in $(seq 10); do curl -s -o /dev/null -w '%{remote_ip} %{http_code}\n' http://app.internal; done
arping -c 4 -I eth0 10.0.1.50 # replies from two MACs = duplicate IP
Fix → Restart or remove the bad backend; fix the health check; remove the duplicate IP assignment.
Prevent → Use DHCP/IPAM to avoid manual IP reuse; health checks on every pool.
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