Wednesday, October 19, 2011

[android-developers] Two emulators communicate via Http

I have implemented Http Server on top of android service on android. I
can successfully handle a simple http request: open a simple home page
by browser (http://10.0.2.15:8080) on local emulator.

Then I launched another emulator and try to open the home page via the
browser on this emulator. But it failed.

I think it is because the second emulator cannot find the "really" IP
address of the first one.

Does anyone have idea about how to send Http request from one emulator
to another emulator via IP address?

In practice, an android phone will send http request to another
android phone as a http server.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment