Hello, I need help.
I run a preview of a project I am creating on my computer by opening CMD and typing php -S localhost:8000 kirby/router.php, then it shows me a link which I paste into my browser bar and I have a preview. But unfortunately this doesn’t work on my phone, how can I get a preview of my project on my phone?
First, find out your local ip address, on the command line (cmd command), you can write:
ipconfig | findstr "IPv4"
This should give you the IP address on your home network.
Then run php, but bind the port to the address you got above. Something like:
php -S 192.168.1.123:8000 kirby/router.php
Then connect the phone to your home network (probably via WiFi) and use the address the command gives you.
Thank you! You have helped me a lot.