What is the IP address of android emulator, by what I found SEVERAL information on the internet, 127.0.0.1, 10.0.0.2 or 10.0.015 to call the emulator from web server (apache). is that the port of the emulator is fixed?
10.0.2.1
- Router/gateway address10.0.2.2
- Special alias to your host loopback interface (i.e., 127.0.0.1
on your development machine)10.0.2.3
- First DNS server10.0.2.4
/ 10.0.2.5
/ 10.0.2.6
- Optional second, third and fourth DNS server (if any)10.0.2.15
- The emulated device's own network/ethernet interface127.0.0.1
- The emulated device's own loopback interfacehttp://developer.android.com/tools/devices/emulator.html
Use this method you will be getting 100% correct ip address for your android emulator
To get the ip address of yoor emulator
Go to adb shell and type this command
adb shell
ifconfig eth0
After running this command I am getting
IP : 10.0.2.15
Mask : 255.255.255.0
Which works for me . I am also working for an networking application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With