This suggests that either you are using an emulator-only alias address, or are trying to contact a pc on a private network behind firewall/nat from the device's mobile network rather than having the device active on wifi at the time of the attempt.. Try something with prebuilt software such as a web server on the pc and the device's default browser.
On Jun 15, 7:56 am, neo <shen.song...@googlemail.com> wrote: > Hello everyone, > > I have developed an application about socket communication between > smartphone (as Client) and pc(as Server). und tested this application on > Android Emulator and PC.It runs successfullly.But When I try to test the > same application on the smartphone.It dosen't work.The error is " > java.net.SocketException:No route to host".Could you tell me,why this error > exist and how should I look through the reason of the error and amend it? > > Thanks a lot. > > neo -- 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