I want to access from other devices (iphone, android device, etc) to my sites on homestead in my machine. My machine and all device are on same network.
I want to us
You can access your site by browsing to http://
.
To understand how it works you need to know two facts:
example.your_ip.xip.io
resolves to your_ip
.8000
is mapped to port 80
of your homestead virtual machine.Please note, xip.io
acts as a "DNS" and you don't need to edit your hosts file to access your homestead site from other devices on local network.
This solution works perfectly if you have only one site mapped in homestead. If there are multiple sites, only last mapped site gets served. A workaround is to use site identifier in your url. http://
still resolves to same endpoint but now you can update your homestead nginx to pickup the site identifier and serve the right site.