Toolman

Port 445 — SMB

TCP well-known

What runs on port 445

Windows file and printer sharing.

Security considerations

Should never be reachable from the internet. This is the port WannaCry and NotPetya spread over.

Checking whether something is listening

# Linux / macOS — what is bound to the port
sudo lsof -i :445
sudo ss -lntp | grep :445

# Windows
netstat -ano | findstr :445
Get-NetTCPConnection -LocalPort 445

# is it reachable from outside?
nc -zv example.com 445
curl -v telnet://example.com:445

Freeing the port

# find the process, then stop it
sudo lsof -ti :445 | xargs kill        # Linux / macOS
netstat -ano | findstr :445            # note the PID, then:
taskkill /PID <pid> /F                    # Windows

Other common ports

All port numbers