Thursday, October 20, 2011

[android-developers] Re: Two emulators communicate via Http

I want to set up an XML RPC server and a method call client on android
OS 2.3; my first step is to implement an HTTP server on android 2.3.

I have implemented an Http server as an android service which can be
started successfully. To test it, I made a simple Http handler that
response to the request and direct to a home page and I created a
simple Activity to test sending the request.

Then I launch the application from emulator and go to open a browser
and type: http://10.0.2.15:8080, the home page successfully showed up.

But I do not know how to send http request to emulator which holds the
http server from another emulator since I don't know the IP address of
that emulator.

For now, I do not have a real android device.

Thanks.

On Oct 20, 3:41 pm, lbendlin <l...@bendlin.us> wrote:
> what are you actually trying to achieve?  Do you have the option to try this
> with at least one real device?
>
> Also be aware that many mobile operators use deep NATting so your real
> device may not even have a useful IP address.

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate