0

I have an Ubuntu guest installed on my mac using virtualbox and vagrant. I installed the postgresql 9.3 on ubuntu.

I try to connect it from the host OS. kept getting operation time out. Is the server running on host "11.11.11.18" and accepting TCP/IP connection on port 5432.

i tried following, still not working.

in vagrant file.

ubuntu.vm.network "private_network", ip: "11.11.11.18"
ubuntu.vm.network "forwarded_port", guest: 3306, host: 3306
ubuntu.vm.network "forwarded_port", guest: 5432, host: 5432

pg_hba.conf

host all all 0.0.0.0/0 md5

postgresql.conf

listen_addresses='*'

what else do i need to check?

2
  • If you forward a port - you need to connect to localhost Commented Aug 6, 2015 at 0:12
  • @zerkms, thank you. it works now. Commented Aug 6, 2015 at 0:18

1 Answer 1

1

As soon as you forward ports - you need to connect to localhost instead.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.