You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Olin Davis edited this page Oct 20, 2015
·
3 revisions
Using vagrant we can configure the vm to bridge directly to your LAN. This way any device on the LAN can access the running VM.
First find the VirtualBox bridges and names. VBoxManage list bridgedifs | grep ^Name
In the vagrant file find the line where the current network is configured. It should start / look something like config.vm.network :private_network, ip: findip()
Replace that line using your bridged connection: config.vm.network :public_network, :bridge => "en0: Ethernet"
"en0: Ethernet" could be different for you. It is found in the first step.
run: vagrant reload
SSH into your vm and run ifconfig
find the ip that relates to your bridged connection. This should be accessible from any device on the network.