Port 5432: PostgreSQL
Port 5432 is the default PostgreSQL listener. As with any database, limit it to application servers and require TLS and strong credentials.
TCPDatabasesUnencrypted by defaultIANA assigned
| Port number | 5432 |
|---|---|
| Service | PostgreSQL database |
| Protocol | TCP |
| Category | Databases |
| Default encryption | No |
Security note. Port 5432 is not encrypted by default. Restrict it to trusted networks, or use an encrypted alternative where one exists, to avoid exposing credentials and data in transit.
Frequently asked questions
What is port 5432 used for?
Port 5432 is the default PostgreSQL listener. As with any database, limit it to application servers and require TLS and strong credentials.
Is port 5432 TCP or UDP?
Port 5432 (PostgreSQL) uses TCP.
Is port 5432 secure?
Port 5432 is not encrypted by default. Where possible, use an encrypted alternative or tunnel it over TLS or a VPN.
Should I open port 5432 on my firewall?
Only if you specifically need PostgreSQL. Expose it to the smallest set of trusted sources, and never open database or Windows-service ports to the whole internet.