Fundamentals of Python Socket Programming and Network Architecture

Software Development Architectures Network communication applications generally fall into two primary architectural categories: Client/Server (C/S) and Browser/Server (B/S). The C/S Architecture requires a dedicated client application installed on the user's machine. This architecture typically offers richer user interfaces and higher performan ...

Posted on Sun, 28 Jun 2026 17:22:00 +0000 by dnice

Solving Port 9999 Stuck in TIME_WAIT State After Process Termination in Ubuntu

On Ubuntu systems, when a process occupies port 9999 and the port remains unavailable due to TIME_WAIT state after the process terminates, preventing new processes from binding to it, you can implement several solutions: Solution 1: Implement SO_REUSEADDR Socket Option Configure your application code with the SO_REUSEADDR option to permit immed ...

Posted on Mon, 01 Jun 2026 18:10:43 +0000 by gibbo1715

TCP Socket Communication in C#: Server and Client Data Exchange

Implementing bidirectional data exchange over TCP in C# requires coordinating a listener that binds to a network interface and a client that initiates the connection. The .NET framework provides TcpListener and TcpClient to abstract low-level socket operations, while NetworkStream manages the underlying byte transmission pipeline. Server-Side I ...

Posted on Fri, 29 May 2026 22:33:52 +0000 by tinuviel

Linux Network Programming: TCP and UDP Protocols

While we often use serial ports for information printing in embedded systems, this approach isn't suitable for multi-host network environments. This introduces the concept of network programming. In Linux, network programming involves using sockets for inter-process communication, particularly between processes on different hosts. Sockets provi ...

Posted on Sat, 23 May 2026 20:50:48 +0000 by guzman-el-bueno

Practical Network Programming in Python: Sockets and HTTP

Socket Programming Basics Socket communication enables direct network data transfer between applicatinos. Python's socket module provides essential functionality for creating network connections: Server Implementation import socket server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = socket.gethostname() port = 54321 server.bind( ...

Posted on Tue, 19 May 2026 22:51:16 +0000 by renzaho