Stencel AcademyHow Infrastructure Works →
Part 1 · Lesson 3 · Beginner

Ports: Many Doors, One Machine

One machine, many ports — each a different process.

In this interactive Infrastructure lesson from Stencel Academy you don't just read — you type real commands like ss -tlnp, curl web-01:8080 and watch the machine respond on a live, animated map. It is part of the free How Infrastructure Works course.

Key takeaway: A port is a numbered door into one process; 'connection refused' means nobody is listening there.

Before this lesson

Builds on: Names to Addresses.

What you'll practise

Terms you'll learn

portsocketlisteningconnection refusedwell-known ports

Check your understanding

`curl web-01:8080` says 'connection refused'. Why?
Open the interactive lesson →