pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Lewis <mark.lewis@mir3.com>
To: Sean <sean.conlon@4expertsolutions.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres-JDBC question
Date: Fri, 27 Jan 2006 10:41:22 -0800
Message-ID: <1138387282.28241.45.camel@archimedes> (raw)
In-Reply-To: <20060127143144.55A805AF173@svr4.postgresql.org>
References: <20060127143144.55A805AF173@svr4.postgresql.org>

This usually means that you have allowed TCP/IP connections in
postgresql.conf, but haven't added a rule allowing remote access in
pg_hba.conf for anything other than localhost.

A sample pg_hba.conf line to allow any host on the network to connect
using MD5 password hashes would be:

host   all    all   0.0.0.0 0.0.0.0 md5

-- Mark Lewis

On Fri, 2006-01-27 at 08:31 -0600, Sean wrote:
> I am using Hibernate to connect to my PostgreSQL (btw – I love)
> database, 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? 
> 
>  
> 
> Thanks,
> 
>    Sean 
> 
> 



view thread (7+ messages)  latest in thread

Message-ID: <1138387282.28241.45.camel@archimedes>
Permalink:  ../1138387282.28241.45.camel@archimedes/
Also on:    postgresql.org/message-id/1138387282.28241.45.camel@archimedes

 · 

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-jdbc@postgresql.org
  Cc: mark.lewis@mir3.com, sean.conlon@4expertsolutions.com
  Subject: Re: Postgres-JDBC question
  In-Reply-To: <1138387282.28241.45.camel@archimedes>
  References: <20060127143144.55A805AF173@svr4.postgresql.org> <1138387282.28241.45.camel@archimedes>

* 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