My suggestion would be set a private nic on vagrant, and then change the
program to bind to that specific IP, will be easier.

https://docs.vagrantup.com/v2/networking/private_network.html

Keep going, and don't give up!

Alvaro.

On Mon, Jan 26, 2015 at 2:55 AM, Charles <[email protected]> wrote:

> Alvaro:
>
> Thanks you for pointing me in the right direction!
>
> Indeed, the results of netstat showed a difference between apache and my
> simple go server:
>
> tcp        0      0 127.0.0.1:3000          0.0.0.0:*
> LISTEN      1406/httpbuddy
>
> vs.
>
> tcp        0      0 0.0.0.0:80              0.0.0.0:*
> LISTEN      -
>
> So it looks like I need to get my go server to listen on 0.0.0.0, which
> would let all interfaces access it, vs. loopback which is 127.0.0.1? Not
> sure how to do that yet, but I'll figure it out.
> BTW, iptables is not running on the virtual machine.
>
> --
> 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.
>

-- 
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