Port 5432 (TCP) โ€” PostgreSQL

PostgreSQL database server.

๐Ÿ”’ Runs locally โ€” your input never leaves this browser tab

Port
5432
Protocol
TCP
Service
PostgreSQL
Internet exposure risk
High

Keep private; check listen_addresses and pg_hba.conf.

Check if port 5432 is open

On the server, see what is listening:

sudo ss -tulpn | grep ':5432 '

From another machine, test reachability:

nc -zv your-server.example.com 5432

Block port 5432 from the internet

With UFW (Ubuntu/Debian):

sudo ufw deny 5432

With firewalld (RHEL/AlmaLinux/Rocky):

sudo firewall-cmd --permanent --remove-port=5432/tcp && sudo firewall-cmd --reload

โ† All common ports