google chrome - Stuck on Meteor example “todos” loading screen when running on an android device -



google chrome - Stuck on Meteor example “todos” loading screen when running on an android device -

issue(s)

the meteor “todos” illustration stuck on loading screen forever when seek run on android device. can seen in screenshot below, next error message shown:

failed load resource: net::err_address_unreachable http://10.0.2.15:3000/sockjs/info?cb=...

also app indicates having problem connecting. possible due bug in cordova meteor 1.0 release? or missing of import configuration/setup step?

setup / configuration system setup meteor 1.0 ubuntu 14.04 vm virtualbox 4.3.18 motorola droid turbo (android 4.4.4) developer mode , usb debugging enabled chrome 38 run these commands in linux terminal meteor create --example todos cd todos ifconfig <------- gives inet addr:10.0.2.15 meteor run android-device –p 10.0.2.15:3000 open chrome devtools wait until “todos” app launches on android device (it launch doesn’t move past loading screen). then open google chrome , type “chrome://inspect” in search bar. click on “inspect” link under “todos” app listed under android device connected via usb.

exapnding on imslavko's answer...

the mobile device downloads intial templates , whatnot on usb, after tries load info server. in case the, mobile device (or should be) connected lan via wifi, provided router. i'm assuming dev pc connected router.

now server running within vm create problematic mobile device see server. ip in vm (in case 10.0.2.15) not straight accessible rest of lan see ip of host computer (likely 192.168.x.x).

when run command meteor

run android-device –p 10.0.2.15:3000

you telling meter start webserver @ ip, telling mobile device webserver @ ip (which can't see stated above).

so do? 2 things...

you need port forwards invitee vm host pc. this... get host pcs ip... in windows run cmd, ipconfig.... save that on invitee vm ip ifconfig (in case 10.0.2.15) on invitee vm, go virtual box menu @ top devices->network->network settings... in window click "port forwarding" button. in there add together rule... hostip = hosts ip step 1, host port = 3000, invitee ip = ip step 2, invitee port = 3000.... nail ok next need tell mobile device server on different ip 1 server running on. forwarding webserver ip host pc want device @ host pc's ip

so new command be....

meteor run android-device –p 10.0.2.15:3000 --mobile-server 192.168.x.x:3000

android google-chrome cordova meteor

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

SQL Server : need assitance parsing delimted data and returning a long concatenated string -