Sunday, November 6, 2011

[android-developers] NoHttpResponseException when communicating between two emulators

I have a client (Emulator A, 5554) sending Http Request to a server
(Emulator B, 5556) which listening on 8102 port

1. I used "adb -emulator-5556 forward tcp: 8202 tcp:8102" to map port.

2. I then used URI "http://10.0.2.2:8202" to send http request,
however, the exception is thrown:
"org.apache.http.NoHttpResponseException: The target server failed to
respond"

When I debug the server side, no request is received there.

Anyone has ideas about this problem?

Thanks,
Vycon

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