What is the IP address of Android emulator,

What is the IP address of the Android emulator, by the fact that I found SEVERAL information on the Internet, 127.0.0.1, 10.0.0.2 or 10.0.015, to call the emulator from a web server (apache). Is the emulator port fixed?

+5
source share
5 answers
  • 10.0.2.1 - Router / Gateway Address
  • 10.0.2.2- a special alias for your loop loopback interface (i.e. 127.0.0.1on your development machine)
  • 10.0.2.3 - First DNS server
  • 10.0.2.4/ 10.0.2.5/ 10.0.2.6- additional second, third and fourth DNS server (if any)
  • 10.0.2.15 - Emulated native network / Ethernet interface.
  • 127.0.0.1 - native feedback interface with emulated device

http://developer.android.com/tools/devices/emulator.html

+7

, 100% IP- Android

IP- yoor

adb

adb shell
ifconfig eth0

enter image description here

IP: 10.0.2.15

: 255.255.255.0

. .

+6

IP- Android - 10.0.2.2.

: .

+2

adb shell netcfg, . . ... , : D

0

All Articles