Re: localhost not equal at 127.0.0.1 - Mailing list pgsql-jdbc

From Nick Fankhauser
Subject Re: localhost not equal at 127.0.0.1
Date
Msg-id NEBBLAAHGLEEPCGOBHDGIELNDNAA.nickf@ontko.com
Whole thread Raw
In response to localhost not equal at 127.0.0.1  (Stéphane Chomat <steph_chomat@mac.com>)
List pgsql-jdbc
>   When i give  no ip address (ex : jdbc:postgresql:dbase ) or i give
> localhost (ex : jdbc:postgresql://localhost/dbase), it take the
> ip address  of the machine)

using jdbc:postgresql:dbase has always worked for me, so I think something
else is wrong. Either pg_hba.conf needs to be changed or something is
unusual about IP addresses on you computer.

What OS are you using? (There are known problems with this on MacOSX 10.1)

Is there a line in your pg_hba.conf file that is like this?:

host         all         127.0.0.1     255.255.255.255   trust

-NickF


pgsql-jdbc by date:

Previous
From: Stéphane Chomat
Date:
Subject: localhost not equal at 127.0.0.1
Next
From: "Dave Cramer"
Date:
Subject: Re: Staroffice, druid, dbvisualizer compatability