Been at this for days i cant make a connection to my postgreSQL database on my local machine, running mac os ML.
nmap of my machine shows that postgres is running on 5432 and i can connect locally via pgadmin and psql.
pg_hba.conf file for postgres
local all all trust
host all all 127.0.0.1/32 trust
host all all 192.168.0.2/16 trust
listen address is set to *
I get the follwing exception when i try to connect with JDBC
org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.