2

I have downloaded a blank project from ionic and i want the changes to occur live. I tried ionic run android -l but it shows an error in by phone net::ERR_CONNECTION_TIMED_OUT(http://192.168.0.102:8100/) are the any setting to be done in .js files .??

2
  • That's not very reasonable issue. Sometimes it happens. Just try again. Commented Mar 19, 2017 at 6:44
  • i tried the same command for 8-9 time but still same results
    – deep dalvi
    Commented Mar 19, 2017 at 7:03

2 Answers 2

2

Make sure that you have installed Cordova Whitelist Plugin.

https://github.com/apache/cordova-plugin-whitelist

To check the plugins, just go to the folder of your application (cd /yourproject) and run:

cordova plugin list

One possible solution if you have already installed whitelist is to make sure that your phone listens to the same network ip as your pc. Reconnect your wifi, and connect pc and device to the same network. Also add in config.xml:

<allow-navigation href="*"/>
2
  • Thanks for your valuable answer.There is also another way by Change the wifi connection to Home Network.It worked out for me
    – deep dalvi
    Commented Apr 8, 2017 at 16:00
  • Thanks a lot, in my ase, I forgot to enable wifi on my device.
    – Proustibat
    Commented Jul 18, 2017 at 18:51
0

add --livereload-port or --livereload-host , and try --livereload again

it fixed my problem.

Not the answer you're looking for? Browse other questions tagged or ask your own question.