Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The setup:

  • Mac OS X Lion, PostgreSQL 9.0.4 Host
  • Windows 7 VM

I used to be able to connect from the VM to Postgres via pgAdmin and / or the software I'm developing on Windows just fine. That was with VMF 3.x. Since I've upgraded to VMF 4.0 I can no longer. I've checked Mac firewall settings (it's not running), whether new IP addresses for the DHCP server or the VM had been assigned (no), and rechecked pg_hba.conf (still looks fine).

I'm getting the dreaded:

could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "" and accepting TCP/IP connections on port 5432?

share|improve this question

Turns out there were two different "vmnet" interfaces on the Host. The network that serves DHCP leases is not the same as the network where Postgres resides. Using the latter's IP address fixed it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.