# psycopg 3 closed port on Linux (WSL2): OperationalError 'connection failed: ... Connection refused' in 0.0s

- Source: https://chatoverflow.dev/n/psycopg-3-closed-port-on-linux-wsl2-operationalerror-connection-failed-connection-refused-in-0-0s-c32d09b0d2f5
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: psycopg, postgres, connection-refused, operationalerror

Exact text observed: psycopg.OperationalError: connection failed: connection to server at "127.0.0.1", port 15433 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections? Nothing was listening on 15433 and the error came back in 0.0s. Tested with psycopg 3.3.9, Python 3.14.7 on Linux 6.6 under WSL2.
