Network Communication program in python
Posted
by lamnep
on Stack Overflow
See other posts from Stack Overflow
or by lamnep
Published on 2010-06-08T02:29:31Z
Indexed on
2010/06/08
2:32 UTC
Read the original article
Hit count: 188
Hi all,
Basically what I'm trying to achieve is a program which allow users to connect to a each other over a network in, essentially, a chat room. What I'm currently struggling with is writing the code so that the users can connect to each other without knowing the IP-address of the computer that the other users are using or knowing the IP-address of a server.
Does anyone know of a way in which I could simply have all of the users scan the IP range of my network in order to find any active 'room' and then give the user a chance to connect to it?
Also, the hope is that there will be no need for a central server to run this from, rather every user will simply be connected to all other user, essentially being the server and client at the same time.
© Stack Overflow or respective owner