Reputation: 4390
Is it possible to connect to my Laravel projects running on my Mac using Laravel Homestead from my iPad and iPhone?
When I go to the IP address of my Mac from either my iPad or iPhone I get the error:
Safari cannot open the page because it could not connect to the server.
I'm sure I have done it in the past but I can't remember how. (That's if I did in the first place.)
Upvotes: 3
Views: 1181
Reputation: 26858
By default, port 80 on the Vagrant VM is mapped to port 8000 on your computer. You should be able to open http://<ipcomputer>:8000
on your iPhone/iPad.
If you have multiple sites defined in your ~/.homestead/Homestead.yaml
file, you will need to comment out the ones you don't want and provision the Vagrant machine again, otherwise, you cannot be sure which one of your sites will show up.
Upvotes: 3