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 1iXr2f-0002qO-Ak for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 18:18:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXr2b-0000al-9l for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 18:18:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXr2a-0000ae-No for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 18:18:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iXr2X-00065z-8C for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 18:18:50 +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 xALII2Sr027324; Thu, 21 Nov 2019 13:18:02 -0500 From: Tom Lane To: "Jason L. Amerson" cc: "'Steve Crawford'" , "'Adrian Klaver'" , "'PostgreSQL'" Subject: Re: Remote Connection Help In-reply-to: References: Comments: In-reply-to "Jason L. Amerson" message dated "Thu, 21 Nov 2019 12:44:22 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <27322.1574360282.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 21 Nov 2019 13:18:02 -0500 Message-ID: <27323.1574360282@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Jason L. Amerson" writes: > I connected to PostgreSQL locally. I ran =E2=80=9Cshow listen_addresses;= =E2=80=9D and it returned =E2=80=9Clocalhost.=E2=80=9D I ran =E2=80=9Cshow= port;=E2=80=9D and it returned =E2=80=9C5432.=E2=80=9D I am now confused.= I edited the =E2=80=9Cpostgresql.conf=E2=80=9D file and change the settin= g to =E2=80=98*=E2=80=99. Then I restarted the server with =E2=80=9Cservic= e postgresql restart.=E2=80=9D I was in root since I had to edit the confi= g files. I thought maybe I edited the wrong file, like maybe there were tw= o in two different locations or something. I ran =E2=80=9Cshow confg_file;= =E2=80=9D and it returned =E2=80=9C/usr/local/psql/data/postgresql.conf.=E2= =80=9D That is the same file I edited from the start. To be sure, I edited= the file by using =E2=80=9Cnano /usr/local/psql/data/postgresql.conf.=E2=80= =9D I went down and found that I did have it as =E2=80=9Clisten_addresses = =3D =E2=80=98*=E2=80=99 yet when I run =E2=80=9Cshow listen_addresses=E2=80= =9D, it shows =E2=80=9Clocalhost.=E2=80=9D I am confused. When I run =E2=80= =9Cnetstat -nlt=E2=80=9D, the results show that it is listening to =E2=80=9C= 127.0.0.1:5432.=E2=80=9D According to what you wrote here, you did everything right, so it's something you failed to mention. One thing I'm wondering is whether you removed the comment symbol (#) from the listen_addresses line when you edited it. As installed, postgresql.conf is pretty much all comments. You might get more insight from select * from pg_settings where name =3D 'listen_addresses'; particularly the source, sourcefile, sourceline fields. regards, tom lane