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

mrad's avatar
Level 1

Cant't access my spark app in my homestead box

When I try to open my Spark site in browser, the connection fails due to timeout.

Here is how I setup my environment on Mac OS X:

  1. Edited /etc/hosts and include the following line

192.168.10.13 . spark-test.app #for access through http://spark-test.app

  1. Cloned a homestead box:

git clone https://github.com/laravel/homestead.git ~/homestead-spark-test

  1. Created Homestead.yaml

cd ~/homestead-spark-test nano Homestead.yaml This is my Homestead.yaml

ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox name: homestead-spark-test

authorize: ~/.ssh/id_rsa.pub

keys:

  • ~/.ssh/id_rsa

folders:

  • map: ~/Code to: /home/vagrant/Code

sites:

  • map: spark-test.app to: /home/vagrant/Code/spark-test/public

databases:

  • homestead
  1. Changed to ~/Code and run

spark new spark-test

  1. Changed to ~/homestead-spark-test

sudo vagrant up sudo vagrant ssh The box is up and running, I can successfully connect and cd ~/Code/spark-test php artisan migrate The tables are created succesfully

Open http://spark-test.app does not connect/times out... :(

Any advice? I repeated the whole process several times with no success. What I am missing here?

0 likes
1 reply
DaveBagler's avatar

Looks like you have set the boxes IP to 192.168.10.10 but the IP you are sending spark-test.app is 192.168.10.13.

Please or to participate in this conversation.