Networking basics

This set ends with the most useful task on the site: you start a real server on your own device and scan it, then read the result. Nothing here touches anyone else's network.

4 questions 1 task Read the lesson

Questions

Each one is marked as you go, and the explanation arrives straight after, which is the part worth reading.

4 questions, marked as you go.

1 What is 127.0.0.1?
2 A port shows as open. What does that mean?
3 When is it acceptable to run nmap against a host?
4 Termux's SSH server listens on port 8022 rather than the usual 22. Why?

Tasks

These need your own device. Run the command in Termux, then paste what it printed. The marking looks at what the output means, so spacing, version numbers and ordering do not matter. If you have not installed anything yet, the lesson covers the setup.

Start a server and scan it

This starts a small web server on port 8022, scans that port on your own device, then stops the server again. Paste the scan output, not the whole terminal session.

Run this in Termux On your own device. Nothing on this page executes it. The command runs in your terminal, and this box only reads what you paste back.

python3 -m http.server 8022 >/dev/null 2>&1 & sleep 2; nmap -sV -p 8022 localhost; kill %1 2>/dev/null
Marking your own work Both halves of this are checked in your browser, with no server involved, so nothing stops you from pasting output you did not run. The tasks are written so that the easiest way to pass one is to actually do it and read the result, which is the whole intention.

All sets Read the lesson