On Tue, 5 Jun 2012 23:17:50 -0700 (PDT)
galapogos <gois...@gmail.com> wrote:

>           socket = new Socket("10.0.2.2", 8888);
>
> When I run the app, it hangs and times out when I click the button. Turns 
> out it hangs on the socket connection. Is this because I have the wrong 
> address, or because there's no server listening to the same socket?

10.0.2.2 is a special address so that apps in an emulator can connect to
services on the host running the emulator. AIUI your service is running
on the same Android device as the client so I think you want 127.0.0.1.

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