I’m trying to create a multiplayer tic-tac-toe game using python and socket. I managed to make it work on my local network. The way my game works is it first asks what you want to do : create a game (ie : becoming the server) or join a game (ie : becoming the client). I rode a lot of tutorials, but i can’t understand what ip-adress my server should use and what ip adress my client should connect to. So if you understand, my server will display the ip-adress the client needs to connect to.
Based on what i saw, the server could use 0.0.0.0 to listen on all port ? But when i’m doing that what ip adress my client should connect to ?
Thanks ! (excuse me if there is some mistakes in my english : i’m french and 16 😉 DiMartino
submitted by /u/Adventurous_Pool9057
[link] [comments]
r/learnpython I’m trying to create a multiplayer tic-tac-toe game using python and socket. I managed to make it work on my local network. The way my game works is it first asks what you want to do : create a game (ie : becoming the server) or join a game (ie : becoming the client). I rode a lot of tutorials, but i can’t understand what ip-adress my server should use and what ip adress my client should connect to. So if you understand, my server will display the ip-adress the client needs to connect to. Based on what i saw, the server could use 0.0.0.0 to listen on all port ? But when i’m doing that what ip adress my client should connect to ? Thanks ! (excuse me if there is some mistakes in my english : i’m french and 16 😉 DiMartino submitted by /u/Adventurous_Pool9057 [link] [comments]
I’m trying to create a multiplayer tic-tac-toe game using python and socket. I managed to make it work on my local network. The way my game works is it first asks what you want to do : create a game (ie : becoming the server) or join a game (ie : becoming the client). I rode a lot of tutorials, but i can’t understand what ip-adress my server should use and what ip adress my client should connect to. So if you understand, my server will display the ip-adress the client needs to connect to.
Based on what i saw, the server could use 0.0.0.0 to listen on all port ? But when i’m doing that what ip adress my client should connect to ?
Thanks ! (excuse me if there is some mistakes in my english : i’m french and 16 😉 DiMartino
submitted by /u/Adventurous_Pool9057
[link] [comments]