OneLinersCommand workbench
Verified diagnostic signature

The destination host rejected the TCP connection immediately.

Match output from tcp, understand the likely cause, then continue with sourced, read-only checks.

Confidence
high
Platforms
linux · macos · windows
Verified
2026-07-24
Recognized output

Signature matched locally

dial tcp .* connect: connection refused

OneLiners matches this pattern in your browser. Your pasted output is not stored or indexed.

Likely causes

What usually produces this signal

  1. No listener on the target address and port
  2. Listener bound to another interface
  3. Active reject rule
Safe next checks

Collect evidence before changing the system

01

List listening TCP ports and their processes

lsof -iTCP -sTCP:LISTEN -n -P

The output matches the expected target and exits without an error.

02

Check whether a TCP port accepts connections

nc -vz <host> <port>

The output matches the expected target and exits without an error.

03

Test a remote TCP port from PowerShell

Test-NetConnection -ComputerName <host> -Port <port>

The output matches the expected target and exits without an error.