could not connect to server: Connection refused

pgsql: could not connect to server: Connection refused” Error when connecting to remote database psql: could not connect to server:…