A client program sends small messages along one connection to a server program listening on 127.0.0.1.

Networks with Python

No reviews yet

Learn what actually travels between two programs. You will turn text into bytes, address a program by host and port, open TCP connections, write small servers that stop on purpose, design a message protocol that survives partial reads, serve several clients at once, and test all of it without a network.
You need Python in Practice first: a terminal, files, JSON, a command-line interface, pytest, and one bounded request to an API. No networking vocabulary is assumed, and the course uses only Python's standard library.
You work in the site's browser editor and in a server sandbox with no route to the public internet. Every server listens only on the loopback address and stops on purpose. One project, a small notice board service, grows into a tested, concurrent service that you finally run in two terminals on your own computer.

  • 12

    chapters

  • 49

    lessons

  • 35

    practice exercises

  • 1

    project

Certificate when you finish Available inEnglishNederlandsDeutsch

Lessons are arranged in a recommended order, but you can open any lesson.

Chapter 1

Programs That Talk

Chapter 2

Text Becomes Bytes

Chapter 3

Addresses, Ports, and Names

Chapter 4

Open a Connection

Chapter 5

Your First Server

Chapter 6

Bytes Arrive in Pieces

Chapter 7

One Message per Line

Chapter 8

Length-Prefixed Frames

Chapter 9

More Than One Client

Chapter 10

Datagrams and Encryption

Chapter 11

Capstone: The Notice Board Service

Chapter 12

Where to Go Next