android – LiveReload Ionic:与服务器的连接失败(http://192.168.56.1:8100/)

我正在尝试使用LiveReload在
Android设备上运行我的应用程序.使用“离子运行android”命令,一切正常但当我尝试执行“离子运行android -l”使用livereload时,我在SplashScreen之后收到此错误:

与服务器的连接失败(http://192.168.56.1:8100/)

>我正在使用Windows,并且我已经创建了一个入站规则,允许Windows防火墙中的8100和35729端口但仍然无法正常工作.
>还在config.xml上安装并配置了Cordova Whitelist插件:

< content src =“index.html”/>
< access origin =“*”/>
< allow-navigation href =“http://ionic.local/*”/>
< allow-navigation href =“*”/>
< allow-navigation href =“http://192.168.56.1:8100”/>
< allow-intent href =“http:// * / *”/>
< allow-intent href =“https:// * / *”/>
>我正在使用USB线运行设备.
>版本:

> node v6.9.5 npm v4.3.0 ionic v2.2.1

>我已经尝试添加了

< preference name =“loadUrlTimeoutValue”value =“700000”/>

但在这种情况下,我收到超时错误.
你可以帮帮我吗?

最佳答案 我的电脑有两个以太网驱动程序,应用程序使用错误的IP启动,我使用“–address解决

点赞