Python-based chat application using sockets for real-time communication. Features client-server architecture. Allows users to exchange messages over a network connection.
A basic chat application implemented in Python using sockets.
This project provides a simple chat application that enables real-time communication between multiple users over a network connection. It consists of two main components: a server script and a client script. The server script manages connections from multiple clients, relays messages between them, and facilitates communication in a chat room environment. The client script connects to the server, allowing users to exchange messages in a chat-like interface.
- Client-Server Architecture: Utilizes a client-server model for communication.
- Real-Time Messaging: Enables users to exchange messages in real-time.
- Customizable: Easily extendable and customizable for various use cases.
-
Clone the Repository:
git clone https://github.com/NityamUpadhyay/Chat-using-python.git
-
Navigate to the Project Directory:
cd Chat-using-python
Edit client.py
- open client.py in any editor.
- Go to line no. 23 and replace "your_name" with your name
- keep it open
- run ipv4 file using cmd by command "python ipv4.py"
- copy the ipv4 address e.g. 192.168.0.1
- check line no. 33 in client.py file
- replace Your_IPv4_Address with ipv4 address
- save the file
- exit
-
Run the Server Script: On your pc:
python server.py
-
Run the Client Script and Follow the Prompts: Run it on client's pc
python client.py
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.