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
- connection timeout — A failure meaning no usable reply arrived before the deadline, pointing at routing, filtering or a silent host.
- connection reset — A failure where an endpoint or something in between abruptly ended a connection by sending a TCP reset (RST).
- listening socket — A socket that has claimed a local address and port and is waiting to accept incoming connections.
- reject and drop — The two ways a firewall can refuse traffic: reject sends back an error so the client fails fast; drop silently discards it so the client times out.
Taught in
- Refused, Timed Out, Reset: Reading A Failure — Linux Fundamentals & Systems Administration