Thiago Coelho
Thiago Coelho

Reputation: 101

LiveReload Ionic: ​The connection to the server was unsuccessful (http://192.168.56.1:8100/)

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/)

  1. I'm using windows and I've created an inbound rule to allow 8100 and 35729 ports at Windows Firewall but still not working.

  2. 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://*/*"/>

  3. I'm running to device using USB Cable.

  4. Versions:

    • node v6.9.5 npm v4.3.0 ionic v2.2.1
  5. 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

Answers (2)

Thiago Coelho
Thiago Coelho

Reputation: 101

My PC has two ethernet drivers and the app was starting with the wrong IP, I solve using "--address

Upvotes: 1

Bikey
Bikey

Reputation: 945

Try turning off windows firewall temporarily if you are on a PC. That might do the trick.

Upvotes: 0

Related Questions