- Port
- 5432
- Protocol used by the service
- TCP
- IANA registrations
- TCP/UDP
- Encryption
- Varies by configuration
- IANA description
- PostgreSQL Database
- IANA service name
- postgresql
Note: IANA has formally registered PostgreSQL on TCP/UDP, but in real-world practice this service operates over TCP only — a formal registration on a transport doesn't guarantee the protocol is actually implemented or used over it. This page's Protocol field reflects genuine usage, not just the registry entry.
What port 5432 is used for
Default listener port for PostgreSQL database connections from applications and administration tools.
Is port 5432 encrypted?
Supports TLS encryption for client connections, but it must be explicitly configured and enforced via server settings (like requiring sslmode) — an unconfigured server may accept unencrypted connections.
Firewall & exposure considerations
Should be firewalled to known application servers only, never exposed to the open internet, for the same reasons as other database ports — a reachable, weakly-secured database is a high-value target.
Related ports
References
Look up any other port
Search the full IANA registry — all 6,100+ ports and 12,500+ protocol-specific records — on the Port Lookup tool.
Last reviewed: . Data source: IANA Service Name and Transport Protocol Port Number Registry. Security and usage notes are this site's own editorial content, not official IANA data.