This project demonstrates a simple TCP/IP socket communication system using Python's built-in socket module. It includes a basic server that listens for incoming messages and a client that sends messages to the server.
├── client.py # Sends message to server └── server.py # Receives and responds to message
- Listens on
127.0.0.1:12345 - Accepts incoming client connections
- Prints the received message
- Sends a confirmation response to the client
- Connects to the server on the same IP and port
- Sends a user-inputted message
- Displays the response from the server
- Open two terminals or run on two separate systems.
python server.py🧰 Tech Stack Language: Python 3
Module: socket (Standard Library)
📌 Use Cases Learning how TCP sockets work
Understanding client-server architecture
Foundation for chat apps, multiplayer games, or messaging protocols
📜 License This project is licensed under the MIT License.
🤝 Contributing Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.