Search code examples
phpsymfonysmartphone

Show website from symfony with symfony PHP built-in web server on a smartphone


I can test my programed website via the php web server that comes with symfony in any webbrowser. But i want to know if my project gets displayed correctly on a smartphone (no i won't use the built in show on mobile in chrome).

Do you guys and girls have any ideas on how to accomplish this ?


Solution

  • normally you start the symfony internal php server with: php bin/console server:run
    to go on the server you have to put localhost:8000in the browser, on a other device in the same network ipoflocalpc:8000 doesn't work.

    to solve this problem and get access to the php server you have to start the server with: php bin/console server:run 0.0.0.0:80
    then you just have to put in the ipoflocalpcand you can get access to the website on every device in the network.

    have fun testing on you smartphone :D