Vagrants:

I'm a Vagrant newbie. I have searched this forum, and then the internet, 
experimented, cried, but still can't solve my problem. You are my only hope.

My host is a macbook air run osx 10.10.
My guest is hashicorp/precise64 using virtualbox

I followed the 'getting started' guide to set it up clean. No problems, and 
port forwarding is working from apache on port 80 to the host on 4567. I am 
able to open a browser on the mac and view the web page (directory listing) 
on the virtual machine. Great!

Now, I'm working through a go programming tutorial. I create a very simple 
http server, and run it on port 3000 on the guest. I change my Vagrantfile 
to include the following lines:

config.vm.network :forwarded_port, guest: 80, host: 4567 
config.vm.network :forwarded_port, guest: 3000, host: 4568

I bring the virtualbox down, the bring it back up again.OK, apache port 
forwarding is still working, but no matter what I do from the host, I can't 
see the simple go server. Chrome shows and error. Curl shows an 'empty 
reply'.

But, on the guest, if I run the server in the background I can see the 
server working on port 3000 with curl. So I know it is running and serving.

So, I conclude that I must be making a mistake somehow with port forwarding?

Help.

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to