A simple chat server written in python demonstrating the use python networking capabilities.
python 2.7
Repo contains two python scripts server.py
and client.py
.
The server script contains code for accepting client connections and broadcasting messages to all connected clients.
The server script contains code for accepting client connections and broadcasting messages to all client code.
The client script contains code for connecting with server and sending messages.
- Clone the repo.
- Navigate to the python-chat-room folder by typing
cd python-chat-room
in terminal. - Run
./server.py
to start a server instance. - Run
./client.py localhost 9009
from multiple terminals to emulate multiple clients` - Send messages between clients.