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 1mDRbA-0002ue-Fp for pgsql-general@arkaria.postgresql.org; Tue, 10 Aug 2021 13:15:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mDRab-0001GE-Ry for pgsql-general@arkaria.postgresql.org; Tue, 10 Aug 2021 13:14:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDRab-0001G6-Iq for pgsql-general@lists.postgresql.org; Tue, 10 Aug 2021 13:14:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDRaW-00031i-N9 for pgsql-general@lists.postgresql.org; Tue, 10 Aug 2021 13:14:40 +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 17ADEXRP3780900; Tue, 10 Aug 2021 09:14:34 -0400 From: Tom Lane To: ourdiaspora cc: "pgsql-general@lists.postgresql.org" Subject: Re: php connection failure In-reply-to: References: <2860895.1628385339@sss.pgh.pa.us> Comments: In-reply-to ourdiaspora message dated "Tue, 10 Aug 2021 09:05:13 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3780898.1628601273.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 10 Aug 2021 09:14:33 -0400 Message-ID: <3780899.1628601273@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ourdiaspora writes: > A quick ddg search revealed: > sudo ss -tulpn > Netid State Recv-Q Send-Q Local Address:Port Peer Ad= dress:Port > tcp LISTEN 0 128 ::1:5432 :::* = users:(("postgres",pid=3D21794,fd=3D3)) > Is the correct conclusion from this output, that the port 5432 is open? No. The postgres process is listening, but this has nothing to do with whether the kernel will allow any packets to arrive there. On recent Red Hat systems, "man nft" might help you. Not sure about other Linux variants. regards, tom lane