Try to change following settings:
In your pg_hba.conf, change md5 method to trust. Make sure to set allowed IPs only.
host all all XXX.XXX.XXX.XXX/24 trust
Of course, if you need to make your db exposed on your whole network, insert all net reference in address column:
host all all 192.168.1.0/24 trust