From: Philip Yarra <philip@utiba.com>
To: pgsql-jdbc@postgresql.org
Cc: Sean <sean.conlon@4expertsolutions.com>
Subject: Re: Postgres-JDBC question
Date: Sat, 28 Jan 2006 14:13:54 +1100
Message-ID: <200601281413.54351.philip@utiba.com> (raw)
In-Reply-To: <20060127143144.55A805AF173@svr4.postgresql.org>
References: <20060127143144.55A805AF173@svr4.postgresql.org>
On Sat, 28 Jan 2006 01:31 am, Sean wrote:
> and can connect my app and the db when using localhost, but when I try to
> connect via an ip address, it blows up telling me that the connection was
> refused. I have set the postmaster to listen for TCP/IP connections, but
> still does not work. Any suggestions?
In postgresql.conf, the default config is to listen only on localhost IP
address (probably listen_addresses will be set to default value and commented
out). Change it so that is reads:
listen_addresses = '*'
and re-start the DB.
As Mark mentioned, you may also want to review your pg_hba.conf file.
Regards, Philip.
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-----------------
Utiba Pty Ltd
This message has been scanned for viruses and
dangerous content by Utiba mail server and is
believed to be clean.
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-jdbc@postgresql.org
Cc: philip@utiba.com, sean.conlon@4expertsolutions.com
Subject: Re: Postgres-JDBC question
In-Reply-To: <200601281413.54351.philip@utiba.com>
References: <20060127143144.55A805AF173@svr4.postgresql.org> <200601281413.54351.philip@utiba.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