Use as like your browser after typing php artisen serve --host ip_address --port port_number in cmd.
http://localhost:port_number e+g = http://localhost:8000
else
http://host ip_address:port_number e+g = http://127.0.0.1:8000
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am accessing project through ip address from the server in my local system.
if internet is available i can access my project through server ip address.
if internet is not available.How can i run the same project in the localhost by auto running the command prompt (where we are running --> "php artisen serve --host ip_address --port port_number " to get local ip addresss )?
Please or to participate in this conversation.