To be able to connect to my postgresql database from another computer, I had to configure the postgresql.conf file as follows:
#------------------------------------------------------------------------------
I tried using 127.0.0.1, but that did not work. Also there was no "localhost". The only way I was able to do this was to use the actual IP address of the server. I checked to make sure my hosts file was localhost ....
In any case, now I can connect from another server by doing the following:
psql -U test test -h 10.14.4.4
But now I notice that I cannot log in locally using the following syntax:
psql -U test test -h 127.0.0.1
The only way to log in locally is
psql -U test test
I tried to change my postgresql.conf file to use "*" ... and this allowed me to log in remotely, but locally I still cannot use 127.0.0.1 or "localhost" to connect.
How can I configure this to work both my remote logins and my local logs?
Thanks.
EDIT 1
This is what my pg_hba.conf file looks like:
# TYPE DATABASE USER ADDRESS METHOD
source share