I use caddy
Hit an issue where a public reverse proxy caddy config was giving this error:
Error: dial tcp x.x.x.x:xxx: connect: no route to host
That message suggests to me a routing issue, but I could still ping x.x.x.x, so the machine clearly had a route to the host.
Issue was firewall on x.x.x.x didnāt have port xxx open.