Remote access yii serve

hi all i’m a total noob of yii, i have follow the guide to configure yii2 (basic), but i find a problem where i run the command “php yii serve --port=8888” the app is accesibile only from localhost, if i try to connect from another pc to my webserver i cannot reach the site, but if i try to open another site it works, is there a config file where i can say to yii serve to allow remote connection?
tks for the help

/**
 * Runs PHP built-in web server.
 *
 * In order to access server from remote machines use 0.0.0.0:8000. That is especially useful when running server in
 * a virtual machine.

so

./yii serve 0.0.0.0 --port=8888
3 Likes

This also was usefull to me
I was trying to make a request from nodejs to yii, but the php yii serve command uses the ipv6 so nodejs cannot found the localhost:8080 port until i ran the command as you comment

php yii serve 0.0.0.0  // default port is :8080