Refused, reset, timeout: three different worlds
When a TCP connection fails, the failure mode carries information about where it failed.
| Result | What happened on the wire | What it implicates |
|---|---|---|
| connection refused | The host replied with a reset after receiving the SYN | Reachable host, nothing listening on that port |
| connection reset by peer | The connection opened and was then torn down | Reachable service that rejected the session |
| i/o timeout | No reply of any kind | Path, firewall drop, or a dead host |
| no route to host | Routing failed locally or upstream | Network configuration, not the node |
Refused is the most informative of the four. The host is alive and its IP is correct — a machine that is down or unreachable cannot produce a reset. So the node's address is right and its port is wrong, or its service is not running.
The four causes, in order of likelihood
The port is not the one the server listens on
Most frequent by a wide margin. Nodes are frequently served on a high port, and a profile edited by hand or generated by a converter can carry a different one — a default 443 where the server uses 8443, or a port shifted by a template. The address is right, which is why the connection reaches the machine at all.
The server process is not running
The machine is up and answering resets for every port, which is what an operating system does when a service has stopped. From outside this is indistinguishable from a wrong port. Providers restart services, run out of memory, or take a node out of rotation without changing DNS.
A firewall is rejecting rather than dropping
Two firewall behaviours produce two different symptoms. Dropping a packet yields a timeout; rejecting it yields a refusal. A host configured to reject produces this message even though the service is fine. The distinction matters because a rejected port will never work from this network while it may work from another.
An intermediary is refusing on the node's behalf
Some networks reset connections to specific ports or to unrecognised destinations. This appears as a refusal but originates outside the node. The signature is that the same node works on another network.
Test the port directly, outside the client
One command settles whether the port is open, before any client configuration is considered:
nc -vz <host> <port>
telnet <host> <port>
Read the result precisely:
- succeeded / open — the port accepts connections. If the client still reports refused, the client is dialling a different host or port than you tested, which points at a stale profile or an edited field.
- refused — the host is reachable and nothing is listening. The port or the service is the problem.
- timed out — a firewall is dropping. Not the same failure as the client reports, so something on the path differs between the two attempts.
That last contrast is valuable: if nc times out while the client reports refused, the client is reaching a different destination than you are testing.
Compare the node fields one at a time
When the port is confirmed correct, the remaining node fields can produce a refusal for a less obvious reason: some transports and security layers require a specific port. A node using a TLS-based security layer against a plaintext port, or the reverse, gets a reset from the server rather than a handshake failure.
So compare against the provider's original parameters rather than against another working node:
- The port, exactly, with no surrounding whitespace.
- The transport type — TCP, WebSocket, gRPC — and whether the server expects a path for the chosen one.
- The security layer, and whether the port is the one that layer is served on.
A mismatch in any of these produces a refusal at connect time, before any protocol data is exchanged, which is why the client cannot tell you which field is wrong.
When it is only one node
A single refused node among many working ones is a node-level fact and not a client problem. Providers rotate servers, and a profile can retain an address that has been retired. The correct response is to disable that node or refresh the subscription, not to change client settings.
When every node refuses at once, the pattern changes: either the client is dialling through something that resets everything, or the subscription carries a stale address set. Test one node outside the client to tell those apart.
What not to change
A refusal is not an authentication failure. Credentials are exchanged after the connection opens, so a refused connection proves nothing about them. Editing the user id, changing the encryption, or regenerating credentials cannot fix a port that is not listening.
It is also not a DNS problem when the message names an IP rather than a hostname. A refusal after successful resolution means the name resolved correctly and the address answered.
Frequently asked
Does refused mean the node is down?
Not necessarily. The host is up — it answered. What is not up is the service on that port. That can be a stopped service, a wrong port, or a firewall rejecting. All three look identical from the client.
Why do some nodes refuse and others work?
Because the failure is per node. A retired address or a changed port affects only that entry. Compare the failing node's fields against the provider's dashboard rather than against a working node, since two nodes can legitimately use different ports.
Can a proxy in front of the core cause this?
Yes. If the client's own traffic is routed through another proxy that resets connections, every dial can appear refused. Test one node with all other capture paths off.
Is this the same as connection reset by peer?
No. Refused happens before the connection opens; reset by peer happens after. A refusal means no session existed. A reset means one did and was terminated, which points at the protocol rather than the port.
Does changing the port in the client help?
Only if the port is genuinely wrong. If the provider's dashboard shows the same port the client has, the cause is the service or a firewall, and no client-side change will help.