From: Szabolcs AndrĂ¡si <andrasi.szabolcs@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Connect to PostgreSQL server from an ADSL connection
Date: Sun, 1 Jan 2006 16:40:48 +0100
Message-ID: <530357980601010740j7b80e975s@mail.gmail.com> (raw)
Hi all,
I am writing because I would like to know that how can I connect
remotely to a PostgreSQL database from an ADSL connection, which has
different IP address every time when it connects to the Internet. This
ADSL connection is registered to www.dyndns.org, so its dynamic IP
address is replaceable with the registered domain name.
My problem is the changing IP address: I would not like to modify the
pg_hba.conf file every time when the remote computer's IP address
changes. I know that there is the "listen_addresses" parameter in the
postgresql.conf file, which can have not only IP addresses as value
but domain names also, and it is required for remote connections. But
in the pg_hba.conf file - as far as I know - I can not use domain
names only IP addresses, so it seems to me that I can not push the
advantage of registered domain name at dyndns.org.
Is there any way to configure the PostgreSQL server to accept remote
connection from one (but always the same) computer which has dynamic
IP address?
Thank you in advance,
Szabolcs
p.s.: Sorry for my bad English... If something is not clear, I will
try to explain it more detailed.
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-admin@postgresql.org
Cc: andrasi.szabolcs@gmail.com
Subject: Re: Connect to PostgreSQL server from an ADSL connection
In-Reply-To: <530357980601010740j7b80e975s@mail.gmail.com>
References: <530357980601010740j7b80e975s@mail.gmail.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