Re: psql: error: could not connect to server: Connection refused

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: BeeRich Lists <bee(dot)lists(at)gmail(dot)com>
Cc: Submit Postgresql Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: psql: error: could not connect to server: Connection refused
Date: 2022-07-04 03:45:57
Message-ID: 1450607.1656906357@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

BeeRich Lists <bee(dot)lists(at)gmail(dot)com> writes:
> It worked! It was the firewall that needed a port hole poked in it.

Huh, interesting. What I'd have expected from a firewall problem
is that the postmaster thinks it's listening on the port (and says
so at startup), but then no traffic actually reaches it. The fact
that you didn't see any log entry about "listening on IPv4 address
so-and-so" suggests that your machine's version of a firewall is
interfering with even binding to the address. Not impossible
I guess, but it's a new one on me.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message mahendrakar s 2022-07-15 15:33:04 best way to apply and work on the patches of the pg community
Previous Message BeeRich Lists 2022-07-04 03:21:28 Re: psql: error: could not connect to server: Connection refused