Port 5432 — PostgreSQL
TCP registered
What runs on port 5432
The default PostgreSQL port.
Security considerations
Keep it on a private network. Configure `pg_hba.conf` deliberately — a permissive `host all all 0.0.0.0/0 md5` line is a common and serious mistake.
Checking whether something is listening
# Linux / macOS — what is bound to the port
sudo lsof -i :5432
sudo ss -lntp | grep :5432
# Windows
netstat -ano | findstr :5432
Get-NetTCPConnection -LocalPort 5432
# is it reachable from outside?
nc -zv example.com 5432
curl -v telnet://example.com:5432
Freeing the port
# find the process, then stop it
sudo lsof -ti :5432 | xargs kill # Linux / macOS
netstat -ano | findstr :5432 # note the PID, then:
taskkill /PID <pid> /F # Windows