Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8D2F-00016V-4A for pgsql-novice@arkaria.postgresql.org; Mon, 04 Jul 2022 03:46:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8D2C-0007YX-OY for pgsql-novice@arkaria.postgresql.org; Mon, 04 Jul 2022 03:46:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8D2C-0007YK-GD for pgsql-novice@lists.postgresql.org; Mon, 04 Jul 2022 03:46:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8D26-0007ni-J5 for pgsql-novice@postgresql.org; Mon, 04 Jul 2022 03:46:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2643jviY1450608; Sun, 3 Jul 2022 23:45:57 -0400 From: Tom Lane To: BeeRich Lists cc: Submit Postgresql Novice Subject: Re: psql: error: could not connect to server: Connection refused In-reply-to: References: <5C6C7AA2-88FF-4F15-B7AC-92B2C2584877@gmail.com> <1435901.1656899131@sss.pgh.pa.us> Comments: In-reply-to BeeRich Lists message dated "Sun, 03 Jul 2022 23:21:28 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1450606.1656906357.1@sss.pgh.pa.us> Date: Sun, 03 Jul 2022 23:45:57 -0400 Message-ID: <1450607.1656906357@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk BeeRich Lists 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