I use Ubuntu 18.04 and I try to
curl the unavailable resource like:
curl 192.168.11.1 --connect-timeout 10
curl 192.168.11.1 --connect-timeout 35
Why does it sometimes respond with
curl: (7) Failed to connect to 192.168.11.1 port 80: No route to host, and sometimes with
curl: (28) Connection timed out after 35001 milliseconds, even on the same timeout?
EDIT: I now tried making HTTP request with
nodeJS's http request library from the same Ubuntu client. And sometimes I get
Error: connect ETIMEDOUT 192.168.9.1:80 and other times I get
Error: connect EHOSTUNREACH 192.168.9.1:80.