https://github.com/shikha-code36/chatserver_with_socket_python
A simple chat server and client project implemented using Python and socket programming
https://github.com/shikha-code36/chatserver_with_socket_python
chat-application python python-socket python-socket-client python-socket-programming python-socket-server python-sockets python3 socket socket-programming tcp tcp-client tcp-server
Last synced: 5 months ago
JSON representation
A simple chat server and client project implemented using Python and socket programming
- Host: GitHub
- URL: https://github.com/shikha-code36/chatserver_with_socket_python
- Owner: Shikha-code36
- License: mit
- Created: 2023-07-03T09:25:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-03T10:28:12.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T01:11:56.600Z (7 months ago)
- Topics: chat-application, python, python-socket, python-socket-client, python-socket-programming, python-socket-server, python-sockets, python3, socket, socket-programming, tcp, tcp-client, tcp-server
- Language: Python
- Homepage: https://pandeyshikha075.medium.com/building-a-chat-server-and-client-in-python-with-socket-programming-c76de52cc1d5
- Size: 3.91 KB
- Stars: 8
- Watchers: 1
- Forks: 36
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chat Server and Client - Socket Programming in Python
This is a simple chat server and client project implemented using Python and socket programming. The server can handle multiple client connections concurrently, allowing them to exchange messages with each other.
## Features
- Basic chat functionality: Clients can send messages to the server, and the server will broadcast the received messages to all connected clients.
- Concurrent connections: The server uses threading to handle multiple client connections concurrently.
- Local testing: The chat server and client are designed to be tested locally on your machine.## Requirements
- Python 3.x
## How to Use
1. First, clone this repository to your local machine using the following command:
```
git clone https://github.com/Shikha-code36/ChatServer_with_Socket_Python.git
```2. Open a terminal window and navigate to the project directory.
3. Run the server script:
```
python server.py
```4. Open another terminal window and navigate to the project directory.
5. Run the client script:
```
python client.py
```6. The client will prompt you to enter your message. Type your message and press Enter to send it to the server. The server will respond with a confirmation message.
7. You can run multiple instances of the client script in separate terminal windows to simulate multiple clients connecting to the server.
## License
This project is licensed under the [MIT License](LICENSE).
## Disclaimer
This project is a basic implementation of a chat server and client for educational purposes. It may not be suitable for production use. Use it at your own risk.
## Contributing
Contributions to this project are welcome. If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.