Come funziona
Servizi esposti
macOS
sudo lsof -nP -iTCP -sTCP:LISTEN
Windows
netstat -ano -p TCP | findstr LISTENING
Linux
sudo ss -tulpn
Comandi alternativi
macOS — mostra i tuoi indirizzi IP locali:
ifconfig | grep "inet "
Linux — mostra i tuoi indirizzi IP locali:
hostname -I
Linux — porte in ascolto con processo:
ss -tulpn
Windows — dal PID al programma
Porte di riferimento
| Porta | Servizio | Nota |
|---|---|---|
| 22 | SSH | |
| 80 | HTTP | |
| 443 | HTTPS | |
| 445 | SMB | |
| 3389 | RDP | |
| 5000 | Server locale | |
| 8080 | HTTP alt | |
| 8765 | Python http.server |
Dispositivi nella rete
Generatore di comando
Comando generato
Stato del firewall
macOS
/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
Windows
netsh advfirewall show allprofiles state
Linux (ufw)
sudo ufw status