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

sonukulal07's avatar

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 co

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 )?

0 likes
3 replies
sonukulal07's avatar

I completed those steps.If internet is available then i can write the url as public ip address followd by the path.If internet is not available.How can i run the same project in the localhost by running the command prompt automatically.

munazzil's avatar

You have to type in your cmd

php artisan up

Please or to participate in this conversation.