“Hello!? Is anyone out there?”
That’s what I’m imagining my client is saying right now, trying to find my server.
So if you read my last post, you would know that I have achieved communication between my server and client scripts which was a big win for me.
Now, I’ve wanted to try and test if I can use this on two different PC’s, run the server on my desktop and the client on my laptop. I thought that this would be something I could easily achieve. Change the IP addresses from localhost to my local 192 address, but apparently that doesn’t work.
Whenever I change from localhost to my 192 address I get this.
Traceback (most recent call last): File "techdox_client.py", line 13, in <module> sock.connect((host, port)) ConnectionRefusedError: [Errno 111] Connection refused
Now what I can gather from this is that it’s no doubt a firewall issue? I’m assuming my PC is going. “Oh someone wants to connect to me on port 1000?… No thanks” So I need to dig around and see if that’s actually the case.
So, once I can get two devices talking to each other, I am then going to start buffing this script up to make it more like a chat app rather than a turn-based one, which it currently is :D.
If you have an idea or can confirm my suspicions, please leave a comment below and help me out!