02Chapter 2: Well-known, registered and dynamic port rangesThis chapter assumes you know what an IP address is, understand the client-server model, can run commands in a terminal, and can read a short Python script. It also assumes you know that a port number identifies a service on a host, which the previous chapter covered. Here you will learn how the 65,6 min read
03Chapter 3: TCP and UDP: which protocols use whichThis chapter assumes you know what a port number identifies and the three port ranges. It also assumes you can read short Python scripts and run commands in a terminal. It covers how the two transport protocols differ, why an application protocol picks one, and which common protocols use which.5 min read
04Chapter 4: Sockets and ephemeral client portsThis chapter assumes you know what an IP address is, understand the client-server model, can run commands in a terminal, and can read short Python scripts. It also assumes you have met the idea that a port number picks one service on a host. Here you will see how a connection is identified end to en6 min read
05Chapter 5: Where port assignments come fromThis chapter assumes you know what a port number identifies, the three port ranges (well-known, registered and dynamic), and the difference between TCP and UDP. It explains who decides that HTTP uses 80 and SSH uses 22, how you can look those assignments up, and where the assignments stop being bind6 min read
06Chapter 6: HTTP on ports 80 and 443This chapter assumes you know the client-server model, can read short Python scripts, and have seen the TCP/UDP and socket material from earlier chapters. It covers how HTTP uses ports 80 and 443, what changes when TLS is added, and the mistakes that most often cause confusion in practice.5 min read
07Chapter 7: Plain-text protocols and their TLS variantsThis chapter assumes you know what a port is, how TCP carries bytes between two sockets, and the default ports for web, email and directory protocols from earlier chapters. It also assumes you can read a short Python script and run commands in a terminal.5 min read
08Chapter 8: DNS: port 53 over UDP and TCPThis chapter assumes you know what an IP address is, how a client talks to a server, and how to run commands in a terminal. You should also be able to read a short Python script. Earlier chapters covered ports, sockets, and the difference between TCP and UDP. Here you apply them to the protocol that6 min read
09Chapter 9: Email ports: SMTP, IMAP and POP3This chapter assumes you know what a port and a socket are, the difference between TCP and UDP, and how a client connects to a server. It also assumes you can run short Python scripts and terminal commands. It builds on the earlier chapter on plain-text protocols and their TLS variants.5 min read
10Chapter 10: Remote access: SSH, Telnet and RDPThis chapter assumes you know what a port is, the difference between TCP and UDP, and how a client connects to a listening server socket. It also assumes you can run commands in a terminal and read short Python scripts. The chapter covers the three most common remote access protocols, their default 7 min read
11Chapter 11: File transfer: FTP, SFTP and TFTPThis chapter assumes you know what a port and a socket are, how TCP differs from UDP, and what an ephemeral client port is. It also assumes you can read short Python scripts. Three protocols move files across a network, and their names look alike. They differ in transport, security and port usage, a6 min read
12Chapter 12: DHCP, NTP, SNMP and syslogThese four protocols run in the background of almost every network. DHCP hands out addresses, NTP keeps clocks in agreement, SNMP lets a management system query devices, and syslog collects log messages. All four default to UDP.5 min read
13Chapter 13: LDAP and SMBThis chapter covers two protocols that sit behind most corporate networks: LDAP, which looks up information about users and resources, and SMB, which shares files and printers. It assumes you know what a port is, the difference between TCP and UDP, and how a plain-text protocol relates to its TLS va7 min read
14Chapter 14: Common database portsThis chapter covers the default ports of common database servers, how clients reach them, and how to check and restrict them. It assumes you know what an IP address is, how a client connects to a server, and what a TCP port is. You should be able to run commands in a terminal and read a short Python6 min read
15Chapter 15: Listing and testing ports from the command lineThis chapter assumes you know what a port, a socket and an ephemeral port are, and that you can run commands in a Linux-style shell. You will learn to answer two questions. Which ports is this machine listening on? Can I reach a given port on another machine? Run these commands only on hosts you own5 min read
16Chapter 16: Ports in firewall rulesThis chapter assumes you know what a port is, how TCP and UDP differ, what ephemeral client ports are, and the default ports of common protocols from the earlier chapters. You should be comfortable reading a short Python script and running commands in a terminal.6 min read
17Chapter 17: Non-standard ports and why port numbers are not proof of protocolThis chapter assumes you know what a port is, the three port ranges, how TCP and UDP differ, and how to run ss and nc. It also assumes you can read short Python scripts. The chapter covers why services run on ports other than their defaults, what that changes in practice, and why a port number i6 min read