Network Discovery Command Summary | Generated by AI
All 4 surfaces updated and tested. Here’s the summary:
Command: ww network discover
ww network discover # Quick: ARP table + MAC OUI vendor lookup
ww network discover -r # + reverse DNS hostnames
ww network discover -p # + port probe + device type guessing
ww network discover -r -p # Full discovery
ww network discover -s 10.0.0.0/24 # Custom subnet
What it does:
- Gets local IP via UDP socket trick (no traffic sent)
- Parses
arp -antable (numeric, no DNS timeout) - Enriches with MAC OUI → vendor name (Apple, Xiaomi, TP-Link, Espressif, etc.)
-r: reverse DNS hostname resolution-p: probes 8 common ports (SSH, HTTP, mDNS, VNC, AirPlay, iPhoneSync) → guesses device type- Filters out multicast/broadcast, sorts by IP
- Prints aligned table
Files changed:
/Users/lzwjava/projects/ww/ww/network/discover.py— new module/Users/lzwjava/projects/ww/ww/main.py— dispatch + help text (3 locations)/Users/lzwjava/projects/ww/README.md— command table row/Users/lzwjava/projects/ww/completions/_ww— zsh completion entry