The network mapper
nmap is the canonical tool for discovering devices on a network and probing what services they're running. On your own LAN, it's the fastest way to answer "what's actually plugged in?" and "which ports are open on this machine?"
Scan modes you'll use
- Ping scan (
-sn) — just discover which IPs are alive. No port scanning. Very fast. - Default scan (no flag) — TCP scan of the most common 1000 ports.
- Service detection (
-sV) — for each open port, probe to identify what's running. - OS detection (
-O) — guess the operating system from TCP/IP fingerprints. Requires root.