I’m using Laravel Homestead. By default, the config is set to private network with IP 192.168.10.10.

Now, let’s allow it to access from other clients.

In the PC with Homestead installed (e.g. 192.168.1.115)

Edit the file /etc/hosts

1
2
192.168.10.10  my.dev.domain
127.0.0.1 my.dev.domain

In the PC that want to access the Homestead web app

Edit the file /etc/hosts

1
192.168.1.115  my.dev.domain

Done. Now you can open up the browser, and key in the URL http://my.dev.domain:8000. (The port number by default is 8000)

References: