Port 5432
postgresql · TCP/UDP
| Range | Registered port (1024–49151) |
|---|---|
| Protocol | TCP/UDP |
| Service | postgresql |
Frequently asked questions
What is port 5432 used for?
Port 5432 is registered with the IANA for postgresql (TCP/UDP). Description: PostgreSQL Database.
Is port 5432 a well-known port?
No. Port 5432 is in the range 1024–49151 (registered or user ports). Ordinary programs may open it without root privileges.
How do I check whether port 5432 is open?
Locally on Linux with ss -tulpn | grep ':5432\b', on Windows with netstat -ano | findstr :5432. To test a remote host use Test-NetConnection <host> -Port 5432 in PowerShell or nc -zv <host> 5432 on Linux/macOS.
How do I open port 5432 in the firewall?
Ubuntu/Debian (ufw): sudo ufw allow 5432/tcp. Fedora/RHEL (firewalld): sudo firewall-cmd --add-port=5432/tcp --permanent, then firewall-cmd --reload. Windows (PowerShell as administrator): New-NetFirewallRule -DisplayName "Port 5432" -Direction Inbound -Protocol TCP -LocalPort 5432 -Action Allow.
IANA registry entries
| Protocol | Service | Description (IANA) |
|---|---|---|
| TCP | postgresql | PostgreSQL Database |
| UDP | postgresql | PostgreSQL Database |