Share via

Win error 10061

Anonymous
2020-06-19T03:06:39+00:00

While using python in visual studio code I am getting a error like "win error 10061" [No connection could be made because the target machine refused it ] how can I solve this problem ?

Windows for home | Windows 10 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-06-19T03:16:02+00:00

    Hi NishalS,

    I am Aster, an Independent Advisor and I'm here to help you with your problem.

    Can you try changing the host IP address to '0.0.0.0' in your python code? The error means that there was nothing listening at the IP:port that you were trying to connect to. If it still does not work after changing, it could be that the client's IP address or port is incorrect.

    The last resort would be to turn off your firewall so that it does not block the connection.

    Hope this helps, thank you.

    Was this answer helpful?

    8 people found this answer helpful.
    0 comments No comments