Sumit wrote:
>
> Help me from comming  out of this.
> Sir, 
>  I really having problem in connecting my android phone to pc
>  in local machine , my android as server.
>  My code is
>

Your code is what?
 

> my android server code get stops at
>
> socket=serverSocket.accept();
>

It will stop there until something connects to the socket. However, one 
fragment of one line of code is not usually enough to diagnose your issue. 
The problem inevitably occurs in the code you have not shown.

How are you trying to connect to that server? It is unusual for a device to 
have a network connection to a PC, which is what you'd need for there to be 
a socket connection. You can use ADB (the Android Debug Bridge) to 
port-forward an accessible PC port to one on the device. Did you do that? 
Or did you do some form of USB tethering? How are you connecting?

Read and follow the advice at
http://sscce.org/

-- 
Lew

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