Port 5432 (PostgreSQL)

Port 5432 is the default port for PostgreSQL. Its IANA registration, transports and port range.

Updated

Port 5432 is registered with IANA under the service name postgresql, on TCP and UDP. It is one of the registered (user) ports, 1024 to 49151.

IANA registration

This is the assignment for port 5432 exactly as the registry lists it, one row per service name and transport.

Service name Transport Description Reference
postgresql TCP PostgreSQL Database None listed
postgresql UDP PostgreSQL Database None listed

Source: IANA Service Name and Transport Protocol Port Number Registry, as downloaded on December 5, 2026. The registry changes over time; the linked page is the authority.

A registration records who a port number is assigned to. It does not prove that whatever is listening on the port is that service, and it does not mean the service uses every transport listed: older entries were routinely registered for both TCP and UDP.

In practice

This section is written by Network Utility. It is not part of the IANA registry.

Port 5432 is the default port for PostgreSQL.

PostgreSQL listens on TCP port 5432. A fresh installation normally accepts connections only from the local machine; the listen_addresses setting controls which interfaces it listens on, and the pg_hba.conf file controls which clients may connect and how they authenticate.

When a remote connection is refused, check both of those settings and then the firewall. Do not open port 5432 to the internet; allow it only from application servers, or use an SSH tunnel or VPN.

Related ports: 3306 (MySQL), 1433 (Microsoft SQL Server), 1521 (Oracle Database listener).

Port range

Port 5432 falls in the registered (user) port range, 1024 to 49151. RFC 6335 calls these User Ports. IANA assigns them on request through IETF Review, IESG Approval or Expert Review. Any program can listen on them without special privileges, so it is common to find software using a port in this range that is registered to something else.

The other ranges are well-known (system) ports (0 to 1023) and dynamic (private) ports (49152 to 65535). The ranges and the assignment rules are defined in RFC 6335.

Look up another port in the port table.