Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GodziLaravel's avatar

how to access to laravel sail from local devices?

Hello

I'm using Laravel sail for my local project I'm wondering if it's possible to access to my project through a local IP address like in php artisan serve ?

Thanks

0 likes
2 replies
digital-pig's avatar

Sail is Docker, right? Docker is local. So your app should be accessible on localhost, as long as your network in Docker is set to bridge, or anything non-blocking.

Edit your /etc/hosts file, find the line with 127.0.0.1 and add your applications domain name if you aren't accessing it through localhost:some-port.

If you're on Windows (why on earth would you be?) the file is found in Windows\System32\drivers IIRC...it's been a while.

Please or to participate in this conversation.