PostgreSQL client connections; also used by many Postgres-compatible databases (CockroachDB uses 26257, but Aurora, Neon, Supabase and Timescale use 5432).
PostgreSQL client connections; also used by many Postgres-compatible databases (CockroachDB uses 26257, but Aurora, Neon, Supabase and Timescale use 5432).
Do not expose to the internet. Do not expose it publicly. Set listen_addresses to the needed interfaces only, use scram-sha-256 in pg_hba.conf, and never allow 'trust' for remote hosts. Exposed Postgres instances are hunted by cryptomining botnets that log in with weak passwords and run COPY ... FROM PROGRAM.
sudo ss -tlnp 'sport = :5432'sudo lsof -nP -i :5432sudo netstat -tlnp | grep ':5432 'netstat -ano | findstr :5432Get-NetTCPConnection -LocalPort 5432 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 5432Test-NetConnection HOST -Port 5432sudo ufw deny 5432/tcpsudo iptables -A INPUT -p tcp --dport 5432 -j DROPsudo nft add rule inet filter input tcp dport 5432 dropNew-NetFirewallRule -DisplayName 'Block TCP 5432' -Direction Inbound -Protocol TCP -LocalPort 5432 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.