Postgresql host port. Pgadmin 4. to connect. postgres localhost error. the pgadmin 4 server could not be contacted:.