This is a simple chat application implemented in Python using socket programming. The application includes one server and three clients (client, client1, client2) that can communicate in real-time.
- Client-Server Architecture: Real-time chat using Python sockets.
- Concurrent Connections: Supports multiple clients with multi-threading.
- Simple User Interface: Basic interface for sending and receiving messages.
- Python 3.x
-
Clone this repository to your local machine:
git clone https://github.com/yourusername/chat-app.git cd chat-app
-
Ensure you have Python 3 installed. You can check your Python version using:
python --version
- Navigate to the project directory.
- Run the server script:
python3 server.py
- Open three separate terminal windows or tabs.
- In each terminal, navigate to the project directory and run a client script:
python3 client.py
python3 client1.py
python3 client2.py
- Type a message in any client terminal and press Enter to send it.
- Messages will be broadcasted to all connected clients, and each client will display incoming messages from others.
server.py
: The server script that handles client connections and message broadcasting.client.py
: The first client script for sending and receiving messages.client1.py
: The second client script for sending and receiving messages.client2.py
: The third client script for sending and receiving messages.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
For any inquiries, please contact Wassaf.