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 Answers
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="*"/>
-
Thanks for your valuable answer.There is also another way by Change the wifi connection to Home Network.It worked out for me Commented Apr 8, 2017 at 16:00
-
Thanks a lot, in my ase, I forgot to enable wifi on my device. Commented Jul 18, 2017 at 18:51
add --livereload-port
or --livereload-host
, and try --livereload
again
it fixed my problem.