This project is a chatroom application developed in Python, utilizing TCP and UDP protocols for client-server communication. The chatroom allows multiple clients to connect and exchange messages in real-time.
- Multi-client Support: Multiple clients can connect and chat simultaneously.
- TCP and UDP Support: Enables messaging using both TCP and UDP protocols.
- Broadcast Messaging: The server broadcasts received messages to all connected clients.
- Simple Usage: User-friendly command-line interface.
To run this project on your local machine, follow these steps:
-
Clone this repository:
git clone https://github.com/yourusername/chatroom.git cd chatroom -
Install Python and necessary packages (default Python setup is sufficient).
-
Start the Server:
python Server.py
This command starts the server and waits for client connections.
-
Start a TCP Client:
python ClientTCP.py
This command starts a TCP client and connects to the server.
-
Start a UDP Client:
python ClientUDP.py
This command starts a UDP client and connects to the server.
-
On the client side, type your message in the command line and press Enter to send.
- Python 3.x
- Internet connection or local network
- Fork this project.
- Create a new branch:
git checkout -b new-feature - Commit your changes:
git commit -m 'Add new feature' - Push to your branch:
git push origin new-feature - Create a pull request.