Skip to content
MtrXTools

WSAECONNREFUSED (10061)

Windows connection refused

Seen in Windows applications (Winsock), "Socket Error # 10061"

The target machine answered but actively refused the connection, which means nothing accepted it on that port.

Common causes

  • The service is stopped or listens on a different port.
  • The service only listens on 127.0.0.1 or one interface, and you connected to another address.
  • A firewall rule rejects the connection instead of dropping it.

How to fix it

  1. Check the service is running and listening with `netstat -ano | findstr :PORT` on the server.
  2. Bind the service to the correct interface, or connect to the address it listens on.
  3. Confirm the port number in both client and server configuration.
Check the port

Got a different message? Paste it into the error explainer.

Related errors

All 19 Network errors