Access site across LAN


  • | 93 points

    I am running Largon on my main system. I can access my project fine at ProjectName.dev on that main system. I would like to access the project from a laptop connected to the same LAN. What URI do I use?


  • | 287 points

    You could use the integrated Ngrok to share it across LAN and even the WWW. Laragon makes that a breeze.


  • | 93 points

    Thanks for your reply. I looked at the ngrok and yes indeed, it worked great. I don't know what you mean by the WWW. Laragon being a breeze though. Care to elaborate?


  • | 287 points

    When using Ngrok you get a http:// url that you can access from anywhere, even when you are not connected to the same LAN. So you could even test your project on your mobile while you're on a train hundreds of kilometers away. :)


  • | 130 points

    It's quite simple using Nginx, just Right Click on the Laragon Menu, Nginx>sites-enabled> auto.YourAppName.dev.conf Notepadd++ will open, so add your IP after yourAppName.dev;

    server_name yourAppName.dev *.yourAppName.dev 192.168.1.2;

    save, reload and test it.


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.