Artisan server for LAN

user5766547 picture user5766547 · Jan 18, 2016 · Viewed 12.7k times · Source

I want to make LAN server with artisan server. How can I run command like this

php artisan serve –-host=192.168.2.20 --port=8000

I tried but I am getting 'Too many arguments.' error

I know I can do this by virtual host. Just wanted to know how to do with artisan server.

Answer

Miguel Piedrafita picture Miguel Piedrafita · May 7, 2018

Try copying this:

php artisan serve --host=192.168.1.1 --port=8000