LoginSignup
3
0

More than 5 years have passed since last update.

ビルトインサーバーで動かすSymfony2に外からアクセス

Posted at

Symfony2 で開発していると、普通ビルトインサーバー使いますよね。

php app/console server:start

あるとき、iPad からテストしたくなったんです。
で、開発マシンのIPを調べてアクセスしてみると、見事に繋がりません。

http://192.168.0.x:8000

外からのアクセスに対応するには、ビルトインサーバー起動時に次のように指定します。

php app/console server:start 0.0.0.0:8000

簡単なことですが、知らなかったら死ぬまで繋がりません。
結構長いことハマりましたw

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0