Test whether an instance answers from the internet
Opens a TCP connection from outside our network to TCP ports 22, 80, 443, 3389 of every public IPv4 and IPv6 address of the instance, each with a 3 second timeout. Each port is open (the connection was accepted), refused (the address answered but nothing listens on the port, or a firewall rejects it), unreachable (no route to the address) or timeout (no answer, typically a firewall dropping the traffic or the instance being stopped). The result is kept for 30 seconds: a call within that window returns the same result and checked_at without testing again. At most 30 calls an hour per user, cached answers included (429 beyond). 503 reachability_unavailable when the test cannot be run right now.

