开发者

Android: Socket connection not working in a specific phone

 Socket connection = new Socket("192.168.1.200", 6000); // 6000 is the standard port for the device to whi开发者_运维知识库ch i am connecting
 InputStream is = connection.getInputStream();

Socket connection as implemented above does not work on LGP500(Android) but works fine on HTC Desire(Android). Could someone tell me what could be wrong...And the weird part is that it used to work fine in LG P500 before, stopped working all of a sudden...tried doing a factory reset..but it was no use still...

I get a SocketException: Network unreachable....

Would be really happy if someone could help me out on this..


That IP address is for a local subnet (probably WiFi) so make 100% sure the phone is using WiFi and not 3G for networking.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜