Simple local-network chat app for one host and multiple clients.
- Only one host runs
server.py. - All other devices run
client.pyand connect to the host IP. - Everyone must be on the same Wi-Fi network.
- Python 3.10+
- Devices must be allowed to reach host TCP port (default
9090)
From this project folder:
python server.py --host 0.0.0.0 --port 9090On Windows PowerShell:
ipconfigShare the Wi-Fi IPv4 address (example: 10.x.x.x or 192.168.x.x) with clients.
Allow inbound TCP 9090 in Windows Defender Firewall for your current network profile.
- In host terminal:
Ctrl + C - Or from any connected client:
/shutdown
python client.py --host <HOST_IP> --port 9090python client.pyThen enter host and port in the app and click Connect.
- Set nickname: enter name in
Nickand click Set Nick - Send public message: type in
Messageand click Send - Send private message: set
DM To+Text, click Send DM - View users: click List Users
- Leave chat: click Quit
/nick <name>/list/msg <user> <text>/quit/shutdown
- If clients cannot connect, campus Wi-Fi may block peer-to-peer LAN traffic.
- Verify host IP and port are correct.
- Verify firewall allows inbound port
9090. - If LAN is blocked, run server on a cloud VM/VPS and connect via public IP.
This prototype uses plain TCP (no encryption/authentication). Do not share sensitive data.