Android Emulator Networking

467 views
Skip to first unread message

Walidix

unread,
May 25, 2010, 10:42:10 AM5/25/10
to android-platform
Hi all,

How can I make Android Emulator and the host machine (Ubuntu 9.10)
connected together to the same network?
For example
Android Emulator IP Address : 10.0.2.15
Ubuntu Host IP Address: 10.0.2.16

Thanks in advance

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

Maciej Sawicki

unread,
May 25, 2010, 2:12:01 PM5/25/10
to android-platform
On Tue, May 25, 2010 at 16:42, Walidix <salhi....@gmail.com> wrote:
> Hi all,
>
> How can I  make Android Emulator and the host machine (Ubuntu 9.10)
> connected together to the same network?
> For example
>  Android Emulator IP Address : 10.0.2.15
>  Ubuntu Host IP Address: 10.0.2.16
>
Short answer: You Can't.

Long answer: Emulator is using NAT for connecting avd to network. As
far as I know there isn't bridging option. However You can use port
forwarding to connect from other hosts, I not sure if port forwarding
isn't configured only for listing connection from local host in that
case You can use net cat or ssh port forwarding for connecting from
other machines.


regards,
Maciej Sawicki
Reply all
Reply to author
Forward
0 new messages