Here are a few links that might get you started with ideas
ztk-enchat encrypted server client and Simple threaded chat server
These scripts don't address all your IP address finding and ordering issues, but it should show you all the tricks you need.
In reply to Re: Creating a messenger system using sockets and tcp protocol.
by zentara
in thread Creating a messenger system using sockets and tcp protocol.
by The Elite Noob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |