コマンド”meteor run android-device” で ”Found multiple network interfaces with non-internal IPv4 addresses” というエラーが出た

Meteor で

meteor run android-device

とコマンドを叩いてAndroidを起動しようとしたら

Error detecting IP address for mobile app to connect to:
Found multiple network interfaces with non-internal IPv4 addresses:
192.168.xxx.xxx, 192.168.xxx.xxx, 192.168.xxx.xxx, 192.168.xxx.xxx, 192.168.xxx.xxx, 192.168.xxx.xxx
Please specify the address that the mobile app should connect
to with --mobile-server.

等と出て起動できなかった

Vagrant等を入れたりしてネットワークが複数ある場合に起こるっぽい

メッセージの通り以下で対処
サーバーにするIPを入れて起動

meteor run android-device --mobile-server 192.168.0.xxx

 

Categorised in: ,