![]() ![]() īut you can't exactly visit it from your phone, or a tablet. Now by default, it will bind to 127.0.0.1 as the host and 8000 as the port, which is all you need to access your website in the browser by simply typing. One way to serve it is using its bundled http server, which you can start by running this Artisan command: php artisan serve ![]() Let's take a standard Laravel app as an example. What if I don't want any of those limited apps?Ī "no software" alternative, and especially if you're only want to preview your website on devices that are on the same Local Area Network (for example, the same Wi-Fi connection), is to expose your web server and bind it to the IP of your machine on the local network. The free plan is much more generous than Ngrok, and is definitely recommended. It can get slow, it has a limited number of connections/requests which can easily get eaten by your numerous js/css/image/font includes.Īnother software alternative is Expose by BeyondCode. But Ngrok has its limitations, especially for free users. Ngrok is beatiful, it's magic, it's an HTTP/HTTPS tunnel that allows anyone to preview your website that's on your local machine without doing some more complicated Apache/Nginx configs and trying to figure out how to access your local machine on your tablet, phone, or any other device. One of the ways you would normally do that - is to use Ngrok. First, a couple of apps with the solution ![]() Here's a quick and easy way to allow any devices on your local network to have a look at what you're building. ![]() Or let a family member preview it and test it without them overtaking your laptop. When developing a website you often want to (and should!) preview your masterpiece on a real mobile device. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |