pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Johnson <remi9898@gmail.com>
Cc: Jason L. Amerson <drjason@alphagenius.org>
Cc: Steve Crawford <scrawford@pinpointresearch.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: PostgreSQL <pgsql-general@lists.postgresql.org>
Subject: Re: Remote Connection Help
Date: Thu, 21 Nov 2019 14:53:05 -0500
Message-ID: <31015.1574365985@sss.pgh.pa.us> (raw)
In-Reply-To: <CADZ4tWNLXab538iu6seDFFr_SnszA_pLVE+M37Ej9YTYcbcMhA@mail.gmail.com>
References: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAse4DPB0qGQZhIy/hSwvrXAQAAAAA=@alphagenius.org>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABXPB96Wx2qQItNorifwAzNAQAAAAA=@alphagenius.org>
	<c0d2694e-1fb2-764e-2ecd-9e5a5fd2e038@aklaver.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAC1PA8iR8OoRKAkDl7hEyjMAQAAAAA=@alphagenius.org>
	<CAEfWYyzdPd=NNM_eOr4LXsAy+rfQvqVERQaDHBAM6E9aborYAw@mail.gmail.com>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABIf3q6Pk74Q4+JJTp/7lSbAQAAAAA=@alphagenius.org>
	<27323.1574360282@sss.pgh.pa.us>
	<!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAm2xSDZXS/SYox13KifmMdAQAAAAA=@alphagenius.org>
	<CADZ4tWNLXab538iu6seDFFr_SnszA_pLVE+M37Ej9YTYcbcMhA@mail.gmail.com>

Mark Johnson <remi9898@gmail.com> 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 <connection info>".  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





view thread (37+ messages)  latest in thread

Message-ID: <31015.1574365985@sss.pgh.pa.us>
Permalink:  ../31015.1574365985@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31015.1574365985@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, remi9898@gmail.com, drjason@alphagenius.org, scrawford@pinpointresearch.com, adrian.klaver@aklaver.com
  Subject: Re: Remote Connection Help
  In-Reply-To: <31015.1574365985@sss.pgh.pa.us>
  References: <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAse4DPB0qGQZhIy/hSwvrXAQAAAAA=@alphagenius.org> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABXPB96Wx2qQItNorifwAzNAQAAAAA=@alphagenius.org> <c0d2694e-1fb2-764e-2ecd-9e5a5fd2e038@aklaver.com> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAC1PA8iR8OoRKAkDl7hEyjMAQAAAAA=@alphagenius.org> <CAEfWYyzdPd=NNM_eOr4LXsAy+rfQvqVERQaDHBAM6E9aborYAw@mail.gmail.com> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAABIf3q6Pk74Q4+JJTp/7lSbAQAAAAA=@alphagenius.org> <27323.1574360282@sss.pgh.pa.us> <!&!AAAAAAAAAAAuAAAAAAAAAGmIF169jV1Ig2e+e0GOo/YBAMO2jhD3dRHOtM0AqgC7tuYAAAAAAA4AABAAAAAm2xSDZXS/SYox13KifmMdAQAAAAA=@alphagenius.org> <CADZ4tWNLXab538iu6seDFFr_SnszA_pLVE+M37Ej9YTYcbcMhA@mail.gmail.com> <31015.1574365985@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox