Porta 5432
postgresql · TCP/UDP
| Faixa | Porta registrada (1024–49151) |
|---|---|
| Protocolo | TCP/UDP |
| Serviço | postgresql |
Perguntas frequentes
Para que serve a porta 5432?
A porta 5432 está registrada na IANA para postgresql (TCP/UDP). Descrição: PostgreSQL Database.
A porta 5432 é uma porta bem conhecida?
Não. A porta 5432 está na faixa 1024–49151 (portas registradas ou de usuário). Programas comuns podem abri-la sem privilégios de root.
Como verifico se a porta 5432 está aberta?
Localmente, no Linux com ss -tulpn | grep ':5432\b' e no Windows com netstat -ano | findstr :5432. Para testar um host remoto, use Test-NetConnection <host> -Port 5432 no PowerShell ou nc -zv <host> 5432 no Linux/macOS.
Como abro a porta 5432 no firewall?
Ubuntu/Debian (ufw): sudo ufw allow 5432/tcp. Fedora/RHEL (firewalld): sudo firewall-cmd --add-port=5432/tcp --permanent e depois firewall-cmd --reload. Windows (PowerShell como administrador): New-NetFirewallRule -DisplayName "Port 5432" -Direction Inbound -Protocol TCP -LocalPort 5432 -Action Allow.
Entradas no registro da IANA
| Protocolo | Serviço | Descrição (IANA) |
|---|---|---|
| TCP | postgresql | PostgreSQL Database |
| UDP | postgresql | PostgreSQL Database |