Hi,

I wrote a TCP socket client, an android application. On my emulator, it can
successfully connect to a TCP sever running in my PC. But, when I deployed
the the apk into my real phone, HTC g4, it dosen't work. An exception was
raised said "java.net.SocketException: Network unreachable".

The situation is, my handset was connected to my PC via USB, and no other
connections were available. How can my android application connect to a PC
server in the case. I don't know if we can use socket over usb connection.
If yes, then why my application doesn't work. If no, then how?

Thanks a lot.

jack

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