Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mehany's avatar
Level 13

Vagrant up: The specified host network collides with a non-hostonly network

Hi everyone,

I would like to setup a VM but I get the below error! This thread from 8 month ago shows up on google but it does not seem to solve the issue.

 Bringing machine 'default' up with 'virtualbox' provider...
 ==> default: Box 'laravel/homestead-7' could not be found. Attempting to find and install...
 default: Box Provider: virtualbox
 default: Box Version: >= 0
 ==> default: Loading metadata for box 'laravel/homestead-7'
 default: URL: https://atlas.hashicorp.com/laravel/homestead-7
 ==> default: Adding box 'laravel/homestead-7' (v0.1.0) for provider: virtualbox
 default: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead-7/versions/0.1.0/providers/virtualbox.box
 ==> default: Successfully added box 'laravel/homestead-7' (v0.1.0) for 'virtualbox'!
 ==> default: Importing base box 'laravel/homestead-7'...
 ==> default: Matching MAC address for NAT networking...
 ==> default: Checking if box 'laravel/homestead-7' is up to date...
 ==> default: Setting the name of the VM: homestead-7
 ==> default: Clearing any previously set network interfaces...
 The specified host network collides with a non-hostonly network!
 This will cause your specified IP to be inaccessible. Please change
 the IP or name of your host only network so that it no longer matches that of
 a bridged or non-hostonly network.

Homestead.yaml

 ---
  ip: "192.168.1.109"
  memory: 2048
  cpus: 2
  provider: virtualbox
  
  authorize: ~/.ssh/homestead_rsa.pub
  
  keys:
  - ~/.ssh/homestead_rsa
  
  folders:
  - map: ~/Code
  to: /home/vagrant/Code
  
  sites:
  - map: homestead.app
  to: /home/vagrant/Code/test/public
  
  databases:
  - homestead
  
  variables:
  - key: APP_ENV
  value: local

OSX 10.11

0 likes
2 replies
mehany's avatar
mehany
OP
Best Answer
Level 13

I found the correct answer. Inside Homestead directory, there is a scripts folder. I opened homestead.rb and changed the following:

My host machine IP: 192.168.1.109
My homestead desired IP: 192.168.1.110

#config.vm.network :private_network, ip: settings["ip"] ||= "192.168.10.10"
config.vm.network "public_network", :bridge => "en0: Wi-Fi (Airport)", :ip => "192.168.1.110"

The correct answer for the above referenced thread is here.

5 likes
asadali007's avatar

please help i have same issue where could i solve it

Please or to participate in this conversation.