Port 5432 — PostgreSQL

TCPDatabase

PostgreSQL defaults to TCP 5432 and also supports local Unix sockets. Databases within one instance share that instance’s listening port.

Registry assignments, software defaults and local listeners are different things. A port number alone does not identify or secure a service.

Configuration and troubleshooting

Inspect port and listen_addresses in postgresql.conf, then source and authentication rules in pg_hba.conf. Plan a restart window for listener-setting changes.

Important limitations

Connection refusal, timeout and authentication failure require different checks. Do not broaden pg_hba.conf to trust as a shortcut around permissions.

Read-only checks: run on the server host

Choose the commands for your OS. Check TCP and UDP separately. No result is not a lasting availability guarantee; inspect host and container separately.

Linux

sudo ss -ltnp 'sport = :5432'

macOS

sudo lsof -nP -iTCP:5432 -sTCP:LISTEN

Windows PowerShell

Get-NetTCPConnection -LocalPort 5432 -State Listen

Sources and review

Sources checked on:

This review covers the explanations and sources on this page, not your device or every community software entry below.

Software Using This Port (1 software)

Community software entries: links are references, not individual verification.

PostgreSQL

Default port for PostgreSQL database server

Usage Suggestions

  • Before using port 5432, please confirm it is not occupied by other services
  • If you encounter port conflicts, consider using other ports or stopping the occupying service

Quick Info

Port
5432
Protocol
TCP
Categories
Database
Usage Status
1 software in use

Need Help?

If you find incorrect information or need to add more, please submit correction information.

Submit Correction