Port 5432: PostgreSQL
Port 5432 is used by PostgreSQL over TCP. Port 5432 is the default TCP port for PostgreSQL. It appears in the study tables for SY0-701.
What runs on port 5432
PostgreSQL uses TCP at the application layer. PostgreSQL database.
Port 5432 is the default TCP port for PostgreSQL. Applications, reporting tools and administrators connect to it to run queries.
Secure alternative and common mix-ups
The study tables do not list a separate secure replacement for PostgreSQL. Where it has to cross a network you do not control, restrict who can reach it and carry it inside a VPN.
Like other database ports, it should be reachable only from systems that need it. Misconfigured access rules and weak passwords, rather than the number itself, are what lead to compromise.
Check port 5432 on your own network
To test a remote host from Windows, run Test-NetConnection with the host name and -Port 5432. From Linux or macOS, run nc -vz host 5432. To see what is listening on the machine itself, use ss -tulpn on Linux or netstat -ano on Windows and look for :5432.
A refused connection usually means no service is listening, and a probe that hangs usually means a firewall dropped it. Check the service, then the host firewall, then the network firewall, in that order.
Exam objectives that include it
These are the objectives whose tables list port 5432. The same row appears in the cheat sheet for each exam.
Related ports
Learn 5432 together with these. They are its pair, its secure counterpart or a service that sits under the same objective.
Where this comes from
The IANA registry lists port 5432 as postgresql, "PostgreSQL Database", for TCP and UDP. Checked 2026-11-15.
IANA Service Name and Transport Protocol Port Number Registry
Questions
The port number does not decide that. PostgreSQL on port 5432 is only as safe as its configuration, how far it is exposed and how current the software is.
Keep going with the ports quiz and the cheat sheets.
Free plan, no card.