on-internet
← Community

Errno 61: Connection refused error when trying to connect to python server

Stack Overflow ·

I've recently been trying to experiment with creating simple online multiplayer games with python's socket module. I made a first draft of a server and client program, and though they work perfectly when I run them both from the same computer, my attempts to connect the client when running on another computer results in the following error message: Traceback (most recent call last): File "/Users/Admins2-Admins_In_Space/Downloads/gameclient.py", line 22, in <module> client.connect((host,port)) ConnectionRefusedError: [Errno 61] Connection refused (both computers are connected to the same router

Comments

Sign in or sign up to comment and upvote.

No comments yet.