Chat Application TCP UDP Report
Chat Application TCP UDP Report
The Chat Application using Sockets in Python aims to enable real-time messaging between clients via a
server, using TCP or UDP. It provides insight into networking concepts and practical applications of socket
programming.
2. Objective
3. Technology Stack
4. System Requirements
- Python 3.x
- OS: Windows/Linux
5. Methodology
The application includes a server script and a client script. The server listens on a port, accepting multiple
Chat Application Using Sockets (TCP/UDP) in Python
connections. The client connects to the server and can send and receive messages. For TCP, each client
establishes a reliable stream connection. For UDP, messages are sent connectionless, offering speed at the
cost of reliability.
6. TCP-Based Chat
TCP is connection-oriented. The server binds to a port and listens. Clients connect via socket and a thread
handles each client. Messages received from one client are broadcast to others. This ensures reliable
message delivery.
7. UDP-Based Chat
UDP is connectionless. The server receives datagrams from any client and forwards them. No connection is
established; packets may arrive out of order or get lost, but the protocol is fast.
8. Features
- Real-time communication
- Console-based UI
9. Limitations
- Basic UI (console)
- No encryption/security
11. Conclusion
The project offers a hands-on experience in socket programming. It demonstrates key concepts of TCP and
UDP, multithreading, and client-server communication. The application serves as a foundation for more
12. References