From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Muthukumar.GK <muthankumar@gmail.com>
To: Nicklas Avén <nicklas.aven@jordogskog.no>
Cc: pgsql-general@lists.postgresql.org
Cc: Paul Förster <paul.foerster@gmail.com>
Cc: pgsql-general@postgresql.org >> PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Accessing Postgres Server and database from other Machine
Date: Sat, 5 Dec 2020 06:55:46 -0800
Message-ID: <49440d42-9eb3-c036-9a41-a4c3c875c86b@aklaver.com> (raw)
In-Reply-To: <CA+rAWgnHBBvTJNFOy+8XXya7vfp4d9sR6nHD2e9VSgta+QcaHA@mail.gmail.com>
References: <CA+rAWgnbLk9TWatPPQYx_R1Mvgdd+59cnrx1tOGJXbZ2G6S1=A@mail.gmail.com>
<f8dea25e-205d-3ad7-30c8-6f81586a9bd0@aklaver.com>
<A67CA642-8DE2-4429-8D6C-A22CF035B120@gmail.com>
<717fd284-6bf5-c5d5-3fed-bb3677108b7a@aklaver.com>
<450B1DA0-91E3-43E9-873A-82E89A655AC5@jordogskog.no>
<CA+rAWgnHBBvTJNFOy+8XXya7vfp4d9sR6nHD2e9VSgta+QcaHA@mail.gmail.com>
On 12/4/20 10:26 PM, Muthukumar.GK wrote:
> Hi Nicklas,
>
> I have added a line "host all all 0.0.0.0/0 <http://0.0.0.0/0;
> md5" in Pg_hba_conf.sample file and restarted postgres server.
Again, changing lines in the *.sample file will not be of any use. The
actual pg_hba.conf file is in the same location as I posted previously
for the postgresql.conf file.
> porstgres port has been added in windows firewall (Windows10)as well.
> But my colleague is still facing the below error when connecting my
> postgres server from .net appplication.
>
> Error is - no connection could be made because the target machine
> actively refused it.
>
> Regards
> Muthu
>
> On Sat, Dec 5, 2020 at 1:36 AM Nicklas Avén <nicklas.aven@jordogskog.no
> <mailto:nicklas.aven@jordogskog.no>> wrote:
>
>
>
> On 4 December 2020 17:17:48 CET, Adrian Klaver
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
> >On 12/4/20 8:03 AM, Paul Förster wrote:
> >> Hi Adrian,
> >>
> >>> On 04. Dec, 2020, at 16:13, Adrian Klaver
> ><adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
> >>> That is the wrong file, the *.sample is the giveaway.
> >>
> >> hmmm, I'd rather call it essential reference documentation or
> >template for automation. It's perfectly well suited to automatically
> >strip all comments and then diff the result to ones real world
> >postgresql.conf or some other version postgresql.conf file to find
> >parameters that have been removed or changed with a new PostgreSQL
> >version. This is highly useful for planning migrations and have a
> quick
> >reference what to check for before actually migrating. So for me this
> >is much more than just a giveaway.
> >>
> >
> >Yes, but for changing the behavior of a running instance it is the
> >wrong
> >file and it's extension is a clue.
>
>
> You will prabably also need to change in tge pg_hba.conf file. At
> least in linux there is no entry for connections from the outside
> there. You will need a "host" entry accepting any ip address or
> specify what ip your collegue is connecting from if possible. I have
> missed this step a few times and banged my head.
>
> /Nicklas
>
>
> On Sat, Dec 5, 2020 at 1:36 AM Nicklas Avén <nicklas.aven@jordogskog.no
> <mailto:nicklas.aven@jordogskog.no>> wrote:
>
>
>
> On 4 December 2020 17:17:48 CET, Adrian Klaver
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
> >On 12/4/20 8:03 AM, Paul Förster wrote:
> >> Hi Adrian,
> >>
> >>> On 04. Dec, 2020, at 16:13, Adrian Klaver
> ><adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
> >>> That is the wrong file, the *.sample is the giveaway.
> >>
> >> hmmm, I'd rather call it essential reference documentation or
> >template for automation. It's perfectly well suited to automatically
> >strip all comments and then diff the result to ones real world
> >postgresql.conf or some other version postgresql.conf file to find
> >parameters that have been removed or changed with a new PostgreSQL
> >version. This is highly useful for planning migrations and have a
> quick
> >reference what to check for before actually migrating. So for me this
> >is much more than just a giveaway.
> >>
> >
> >Yes, but for changing the behavior of a running instance it is the
> >wrong
> >file and it's extension is a clue.
>
>
> You will prabably also need to change in tge pg_hba.conf file. At
> least in linux there is no entry for connections from the outside
> there. You will need a "host" entry accepting any ip address or
> specify what ip your collegue is connecting from if possible. I have
> missed this step a few times and banged my head.
>
> /Nicklas
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, muthankumar@gmail.com, nicklas.aven@jordogskog.no, paul.foerster@gmail.com
Subject: Re: Accessing Postgres Server and database from other Machine
In-Reply-To: <49440d42-9eb3-c036-9a41-a4c3c875c86b@aklaver.com>
References: <CA+rAWgnbLk9TWatPPQYx_R1Mvgdd+59cnrx1tOGJXbZ2G6S1=A@mail.gmail.com> <f8dea25e-205d-3ad7-30c8-6f81586a9bd0@aklaver.com> <A67CA642-8DE2-4429-8D6C-A22CF035B120@gmail.com> <717fd284-6bf5-c5d5-3fed-bb3677108b7a@aklaver.com> <450B1DA0-91E3-43E9-873A-82E89A655AC5@jordogskog.no> <CA+rAWgnHBBvTJNFOy+8XXya7vfp4d9sR6nHD2e9VSgta+QcaHA@mail.gmail.com> <49440d42-9eb3-c036-9a41-a4c3c875c86b@aklaver.com>
* 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