Reputation: 101
I'm trying to run my App at Android device with LiveReload. With "ionic run android" command, everything works but when I try to execute "ionic run android -l" to use livereload I'm getting this error after SplashScreen:
The connection to the server was unsuccessful (http://192.168.56.1:8100/)
I'm using windows and I've created an inbound rule to allow 8100 and 35729 ports at Windows Firewall but still not working.
The Cordova Whitelist Plugin is also installed and configured at config.xml:
<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://*/*"/>
I'm running to device using USB Cable.
Versions:
I've already tried to add
<preference name="loadUrlTimeoutValue" value="700000" />
but in this case, I'm getting timeout error. Could you help me?
Upvotes: 5
Views: 2594
Reputation: 101
My PC has two ethernet drivers and the app was starting with the wrong IP, I solve using "--address
Upvotes: 1
Reputation: 945
Try turning off windows firewall temporarily if you are on a PC. That might do the trick.
Upvotes: 0