On Mon, Jun 21, 2010 at 1:40 PM, xuxu <[email protected]> wrote:

> HI all,
> I'm trying to open tcp connection between android (emulator) and PC.
> I'm trying to create a new socket and then it crash.
> the line where it crash:
> Socket s = new Socket("10.0.2.2", 27015);   // trying to open a socket
> Can some one please please help me.
> thanks
>
>
do you have an error message / stack trace that shows what the problem is.
I.e. did you specify the INTERNET permission in your manifest ?

is your server listening on 127.0.0.1:27015 on your development machine
(instead of <ip>:27015, where <ip> is your ethernet interface address).



> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to