A real-time terminal chat app built with pure Python sockets. It lets many clients connect to one server and talk in real time.
- You start the server on one computer.
- Other computers run the client and connect to it.
- Everyone can send and receive messages instantly.
python server.pyKeep this running — it waits for clients to join.
On another machine (or same computer), run:
python client.pyIf the server is on another PC, edit this line in client.py:
SERVER_HOST = "192.168.x.x" # replace with server's IPv4 addressType messages and press Enter to send them.
[Amine joined the chat]
Amine: Hello!
Jaied: Hey Amine!
- Works on the same Wi-Fi network.
- Uses only built-in Python modules (
socket,threading). - No Internet required — it’s all local.