Port 5432 — PostgreSQL
Default TCP listening port for PostgreSQL object-relational database client connections.
⚡ Primary Use Cases & Environments
- ✓Backend web applications (Django, Ruby on Rails, FastAPI) connecting to Postgres
- ✓Data analytics tools and pgAdmin
🛡️ Security & Vulnerability Analysis
Ensure "listen_addresses = 'localhost'" in postgresql.conf unless remote access is specifically required. Restrict client IP ranges using pg_hba.conf and require scram-sha-256 password encryption.
🔧 Network Diagnostics & Inspection
🔥 Firewall Configuration Rules (UFW & iptables)
❓ Frequently Asked Questions (FAQ)
How do I test remote PostgreSQL connection on port 5432?
Run "pg_isready -h <host> -p 5432" or connect via psql: "psql -h <host> -p 5432 -U <user> -d <dbname>".
How do I configure PostgreSQL to accept connections only over SSL?
Set "ssl = on" in postgresql.conf and specify "hostssl" instead of "host" in your pg_hba.conf configuration file.