En postgresql.conf pones
listen_addresses = '*'Por defecto dice solo localhost, y en el firewall permites el paso al puerto 5432, luego reinicias postgres y listo
listen_addresses = '*'