I think a lot of this stuff, though not all, is covered in the docs -
http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking.

If you have already seen that, I apologize, but if not, it's a good
starting point for how the emul networking is configured, how to
redirect, how to connect different emul instances, and how the routing
is done. All of that relates, at least in part, to all 3 of your
questions. Try giving that a look (if you haven't already).


On Jul 16, 7:06 am, Mani <mani.on.gt...@gmail.com> wrote:
> All :
>
> Currently , when i launch the Android Emulator , it creates a Virtual
> eth0 interface and assigns the IP Address 10.0.2.15 to it .  It also
> has a Host Loop Back address 10.0.2.2 which is nothing but the alias
> to the PC Loop Back address 127.0.0.1 .
>
> Now , if i am running the Anrdroid Emulator on a PC , containing the
> IP address, say,  192.168.11.2 and another Machine-A is connected to
> the Same LAN  , and contains the IP address , say , 192.168.11.14.
>
> Q1 -
> How does the Client process running in Android space communicate with
> server process running on Machine-A ( 192.168.11.14 ) ?
> I assume the packet flow as
> Android eth0 ( 10.0.2.15) ---> Android host loopback ( 10.0.2.2) --->
> PC Loopback ( 127.0.0.1) ---> PC eth0 ( 192.168.11.2) ----> Machine-A
> ( 192.168.11.14)
>
> Can you kindly let me know if this is correct ? if so , how is packet
> flowing from PC Loopback to PC eth0 ? if not , how exactly is the
> packet flowing ?
>
> Q2 -
> How exactly is the virtual eth0 interface created in the android
> Emulator, what API's are used ?  . If i want to create a eth1
> interface and assign some IP Address to virtual eth1 and then be able
> to use eth1 interface to send a Packet to Machine-A . How can i
> acheive it
>
> Q3 -
> How is the Android Router ( with IP Address 10.0.2.1) used ?
>
> Can you Kindly Provide any links , that would provide these
> information , on how to work with the Android Virtual network
>
> Thanks
> Mani
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to