Android 设备需要与 Meteor 服务器 (VM) 在同一网络上
Android device need to be on same network than meteor server (VM)
我的 android 设备和我的流星服务器需要在同一网络上才能通信(参见警告消息)。我的流星服务器是 Ubuntu 上的 运行,位于带有 VMWare Workstation 12 Player 的虚拟机内,我的 android 已连接到我的本地 WiFi。我该怎么做?
$ meteor run android-device --port 3001
=> Started proxy.
WARNING: You are testing your app on a remote device. For the mobile
app to be able to connect to the local server, make sure your device
is on the same network, and that the network configuration allows
clients to talk to each other (no client isolation).
=> Started your app.
=> App running at: http://localhost:3001/
=> Started app on Android Device.
在 VMWare 菜单中,转到 Player > Manage > Virtual Machine Settings > Network Adapter
和 select Bridged
。也许你需要重启你的虚拟机,我没有。
如果你的物理机是运行 Windows,你可以检查两台主机在Ubuntu和ipconfig
上是否在同一个网络ifconfig -a
.如果它不工作,请尝试从您的物理机 ping 连接到本地网络的其他设备(有时提供商设备会过滤内部流量)。
我的 android 设备和我的流星服务器需要在同一网络上才能通信(参见警告消息)。我的流星服务器是 Ubuntu 上的 运行,位于带有 VMWare Workstation 12 Player 的虚拟机内,我的 android 已连接到我的本地 WiFi。我该怎么做?
$ meteor run android-device --port 3001
=> Started proxy.
WARNING: You are testing your app on a remote device. For the mobile
app to be able to connect to the local server, make sure your device
is on the same network, and that the network configuration allows
clients to talk to each other (no client isolation).
=> Started your app.
=> App running at: http://localhost:3001/
=> Started app on Android Device.
在 VMWare 菜单中,转到 Player > Manage > Virtual Machine Settings > Network Adapter
和 select Bridged
。也许你需要重启你的虚拟机,我没有。
如果你的物理机是运行 Windows,你可以检查两台主机在Ubuntu和ipconfig
上是否在同一个网络ifconfig -a
.如果它不工作,请尝试从您的物理机 ping 连接到本地网络的其他设备(有时提供商设备会过滤内部流量)。