Connecting to Meteor from android emultaor

By shaikhmo
In February 9, 2016
552 Views

Connecting to the localhost meteor server from the local machine is done using localhost:3000 URL, but same tried from the android emulator, then it does not connects to localhost,

The localhost refers to the device on which the code is running, in this case the emulator. If you want to refer to the computer which is running the Android simulator, use the IP address 10.0.2.2 instead. Use 10.0.2.2 for default AVD and 10.0.3.2 for genymotion.

 

And in case of meteor we use 10.0.2.2:3000 in our android app for connecting to the localhost meteor server.

Leave A Comment