Common Ports & Protocol Reference
Beginner · 30 minutes · 100 points
In this foundational networking lab, you will explore the most common network ports and protocols used in modern infrastructure. Using built-in Linux tools inside an Ubuntu container, you will examine port assignments, inspect the /etc/services file, use netcat to simulate listeners, and document your findings. By the end of this lab you will be able to identify well-known ports (0-1023), registered ports, and the protocols that use them — knowledge that is essential for firewall rules, troubleshooting, and security work.
What you’ll learn
- Understand the structure of the /etc/services file and how Linux maps port numbers to protocol names
- Identify and look up common well-known ports (HTTP, HTTPS, SSH, FTP, DNS, SMTP, etc.) using command-line tools
- Use netcat (nc) to start a simple TCP listener and verify an open port using basic shell tools
- Create a personal reference cheat-sheet file documenting key ports and protocols
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: networking, ports, protocols, linux, netcat, services, reference
Create a free account to start this lab.