Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXsWd-0005qO-RC for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 19:53:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXsWc-00023R-9u for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 19:53:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXsWb-00023K-W0 for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 19:53:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXsWZ-0005dH-Pl for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 19:53:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xALJr69e031016; Thu, 21 Nov 2019 14:53:06 -0500 From: Tom Lane To: Mark Johnson cc: "Jason L. Amerson" , Steve Crawford , Adrian Klaver , PostgreSQL Subject: Re: Remote Connection Help In-reply-to: References: <27323.1574360282@sss.pgh.pa.us> Comments: In-reply-to Mark Johnson message dated "Thu, 21 Nov 2019 14:02:02 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31014.1574365985.1@sss.pgh.pa.us> Date: Thu, 21 Nov 2019 14:53:05 -0500 Message-ID: <31015.1574365985@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Mark Johnson writes: > As I recall, if the listening address is set to '*' but is showing > localhost, then the problem you describe is likely due to missing an IPv6 > address in pg_hba.conf. No, the contents of pg_hba.conf don't directly impact the listen_addresses setting. Also, if that's where the problem is, I'd expect a failure complaining about "no pg_hba.conf entry for ". The reported "connection refused" message suggests strongly that the postmaster isn't actually listening on the desired port, which also implicates listen_addresses rather than anything else. (I think it could also be caused by a firewall filter, if the firewall is configured to send back a TCP RST rather than just drop the packet. But if "show listen_addresses" isn't showing what we expect, that's the first thing to fix.) The OP may well need to adjust pg_hba.conf too, but he's not got that far yet :-( regards, tom lane