Answer the question
In order to leave comments, you need to log in
How to run Vagrant server on VirtualBox?
Hello.
I'm trying to deploy a local server on mac os to work with php.
According to the instructions, I installed VirtualBox, Vagrant and connected to the local server.
After that, I decided to add an IP address to Vagrantfile so that I could access the local site from the browser
config.vm.network "public_network", ip: "192.168.33.33"
Answer the question
In order to leave comments, you need to log in
need to see ifconfig
result from macos terminal
what subnet is en0 adapter ?
and preferably a complete Vagrantfile - the problem is most likely in it.
config.vm.network "public_network", auto_config: false
config.vm.network "public_network", bridge: 'en0', ip: "192.168.33.33"
inline: "route add default gw 192.168.33.1"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question