In this post, you’ll learn more about the Windows Socket Error WSAECONNREFUSED
10061 returned by the WSAGetLastError function in Windows as well a quick description about the error
Windows Socket Error Code
Windows Socket Error Description
No connection could be made because the target computer actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host—that is, one with no server application running.