This repository contains a simple chat application implemented in Python using sockets. The application consists of two main files: server.py
and client.py
. Follow the steps below to set up and run the chat application.
-
Clone the repository to your local machine:
git clone https://github.com/dhruv-joshi25/Real-time-chat-application
-
Navigate to the project directory:
cd chat-application-python
-
Open a terminal and navigate to the project directory.
-
Start the server by running:
python server.py
-
The server will start listening for incoming connections.
-
Open another terminal window or multiple terminals for different clients.
-
Start a client by running:
python client.py
-
You can now start chatting with other connected clients.
-
The
server.py
file sets up a socket server that listens for incoming connections. -
The
client.py
file connects to the server and allows users to send and receive messages. -
Communication between the server and clients is achieved through socket programming.
Feel free to contribute to the development of this chat application. If you have any improvements or new features to suggest, please open an issue or create a pull request.