Network Error on phone on "ionic run android -c -l -s"


#1

I’m getting an error message when running “ionic run android -c -l -s” on my test phones (Nexus 6 and Moto G. It says "Application Error - There was a network error. (http://10.1.77.214:8100/). If I run it without parameters the app will load, but I can’t debug.

UPDATE: I tried starting a blank Ionic project from scratch and now when I “ionic run android -c -l -s” I get net::ERR_CONNECTION_REFUSED (http://10.1.77.214:8100/)


#2

10.1.77.214 is probably the machine where you ran ionic and your phone cannot access it. there can be many reasons for that, maybe you have a firewall blocking incoming connections.

What do you mean? Reading the console?
If your phones are running at least Android 4;4, you can use Chrome remote debugging via USB and will have access to your phoen console plus a real JS debugger.


#3

I am experiencing the exact same problem. Did you find a solution to this issue?


#4

ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git


#5

Thanks for posting your findings back to this thread. :thumbsup: