"Eric D. Nielsen" <nielsene@mit.edu> writes:
> I've confirmed from the commandline using
> psql -h <hostname> -p <port> -U <username> database
> "psql: could not connect to server: Connection refused
That's not a Postgres problem. You do not have network-level
connectivity --- I'm betting you forgot to enable TCP access
to that VM, or something along that line. Think firewall
configuration, not Postgres.
regards, tom lane