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?
asked Aug 6, 2015 at 0:08
-
If you forward a port - you need to connect to localhostzerkms– zerkms2015年08月06日 00:12:36 +00:00Commented Aug 6, 2015 at 0:12
-
@zerkms, thank you. it works now.qinking126– qinking1262015年08月06日 00:18:49 +00:00Commented Aug 6, 2015 at 0:18
1 Answer 1
As soon as you forward ports - you need to connect to localhost
instead.
answered Aug 6, 2015 at 0:19
Sign up to request clarification or add additional context in comments.
Comments
lang-sql