Connections to PostgreSQL databases.
What is port 5432 used for?
Default TCP port commonly used by PostgreSQL servers to accept client connections.
Transport protocol
TCP
Role and operation
A client opens a TCP session to the PostgreSQL server, after which the PostgreSQL protocol negotiates connection parameters, authentication, and optionally TLS before SQL queries are exchanged. The server can be configured to listen on a different port.
Security precautions
Should this port be opened in the firewall?
Open TCP 5432 only between authorized applications or administration hosts and the PostgreSQL server. Avoid unnecessary public exposure.
How to verify this port
On Windows, Test-NetConnection SERVER -Port 5432 checks TCP reachability. Complete the test with a real PostgreSQL connection, for example with psql, to validate TLS, authentication, and pg_hba.conf rules as well.
Port/service mappings are common conventions. An application can be configured to use a different port.