← View projects

Python Academic project

Following a client-server conversation

Explored how a local Python client and server connect, exchange messages, and handle an exit command.

CYSE 250: Basic Cybersecurity Programming and Networking

April 2025

PythonsocketTCPPyCharm

The task

Explain basic socket operations and create a local client-server message exchange as part of a programming and networking assignment.

My approach

  1. Used a server socket bound to localhost on port 5000.
  2. Worked with listen, accept, connect, send, and recv in the example programs.
  3. Encoded and decoded messages between the client and server.
  4. Included an exit command and documented the program code with screenshots.

What the work shows

The submitted material shows both server and client code and written answers about connection setup and socket operations. It is a local learning exercise, with no claim of production deployment or encrypted communication.

Connection to IT support

Understanding which side listens and which side connects gives useful context when a service is unavailable, a port is incorrect, or a client cannot establish a connection.

Read the original coursework