Debe ajustar pg_hba.conf :
https://www.postgresql.org/docs /current/static/auth-pg-hba-conf.html
Una vez que agregue su propio host y el usuario correspondiente, reinicie el servidor postgresql para que pueda conectarse.
También es posible que deba habilitar su puerto en la red:https://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html