connection refused

A quick failure meaning the destination host answered but nothing accepted connections on that port, or a firewall rule actively rejected it.

In more detail

For TCP the host usually replies with a reset to the SYN. It proves the path to the host works, so inspect listeners and reject rules next. It is the fastest of the three failure types.

Example

refused=listener timeout=path reset=peer pairs each failure with its first question.

Related terms

Taught in

References