This is the step beginners skip, and it's why their scan results make no sense.
A normal TCP connection
Before any data moves, two machines do a three-way handshake:
- SYN: you say "I want to connect."
- SYN-ACK: the target says "OK, I'm listening."
- ACK: you say "Great, connected."
What Nmap's default scan does
When you run Nmap with root privileges, the default is a SYN scan (-sS), also called a half-open scan:
- Nmap sends SYN.
- If the target replies SYN-ACK, the port is open.
- Nmap never sends the final ACK. It sends a reset (RST) instead, so no full connection is made.
If the target replies RST, the port is closed. If nothing comes back, the port is probably filtered by a firewall.
sudo nmap -sS 10.0.2.5 # SYN scan (needs root)
nmap -sT 10.0.2.5 # full connect scan (no root needed)
Without root, Nmap can't craft raw packets, so it falls back to a connect scan (-sT), which completes the full handshake.
Watch it happen
Run Wireshark in your lab while you scan, and filter with tcp.flags.syn == 1. Seeing the packets once makes this click forever. Start with Capture your first packets with Wireshark.