Toolman

Port 123 — NTP

UDP well-known

What runs on port 123

Network Time Protocol — clock synchronisation.

Security considerations

Another amplification vector. Disable the monlist command and do not run an open NTP server.

Checking whether something is listening

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

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

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

Freeing the port

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

Other common ports

All port numbers