Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MonrealRyan/ba0859f8fa371167462af050b0d76fb8 to your computer and use it in GitHub Desktop.
Save MonrealRyan/ba0859f8fa371167462af050b0d76fb8 to your computer and use it in GitHub Desktop.

Note: This example is derive from the answer from (stackoverflow)[https://stackoverflow.com/questions/35976448/how-to-access-laravel-homestead-on-other-devices#43144708] by @totymedli. The purpose of this gist is for my personal referrence but everyone is welcom :) just give the credit to the real author.

Let say, in your server computer where you host your laravel project you have the following IP Address mapping in your host file:

192.168.10.10   poinOfSale.dev
192.168.10.10   invertory.dev

And let say that the server IP Address is 192.168.0.204. Just copy the rows above to the remote computer's host file and change the IP Address the server's IP Address which in our example is the 192.168.0.204. see below:

192.168.0.204   poinOfSale.dev
192.168.0.204   invertory.dev

Then you can access the server by typin on ther remote computer the following

poinOfSale.dev:8000
invertory.dev

Thats all!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment