- Download the repository with:
git clone https://github.com/yutytuty/Rendezvous-Server.git
- Change the
ADDR
constant at the top of theserver.py
and theRENDEZVOUS
constant at the top ofclient.py
to your desired address, although running on localhost works out of the box. - Run the server with
python3 server.py
- Run both clients with
python3 client.py
- When both clients are connected, a chat window will open up in the terminal and messaging will work.
- Server opens udp punchole
- Server waits for message that says
hello
- Server saves address of message sender
- If there is only 1 connection the server waits for a second one (goto 1)
- The server exchanges the clients' ip addresses with each other and sends them the
ready
message to indicate they are ready to message - The clients open a tcp listening port
- Clients send messages over udp which are then printed