Wandering Manor - a public network not working on osx

I tried all day to get a public network using Vagrant 1.6.5 with VirtualBox. I really need to have access to all my Homestead sites on my other devices (iPad, iPhone, Android, etc.) on my local network. The box provides a fine, but the sites are all time out.

homestead.rb

config.vm.network "public_network", :bridge => "en0: Wi-Fi (AirPort)", :ip => "192.168.1.200"

My host is OS X mavericks using DHCP ( 192.168.1.137).

The private network is working fine, but I cannot get public networks to work with any changes to the above configuration.

+4
source share
4 answers

IP- ( VM ip) :8000. , ip 192.168.0.5, , 192.168.0.5:8000, Laravel.

homestead.rb:

# Configure A Private Network IP
config.vm.network :private_network, ip: settings["ip"] ||= "192.168.10.10"
+6

, :

  • Homestead/scripts/homestead.rb config.vm.network :public_network, ip: "192.168.1.123" ( , IP- ).

  • vagrant reload

  • , hosts IP-.

ping 192.168.1.123 .

+3

What is the error you are getting? Make sure that 192.168.1.200 is not used by any other device.

Network configuration for stray boxes

0
source

This line works fine for me:

config.vm.network :public_network, ip: settings["ip"] ||= "192.168.10.10", bridge: "eth0"

Then it uses the ip variable from ~ / .homstead / Homestead.yaml, and if it is not set, it uses 192.168.10.10

-1
source

All Articles