Android Socket connect的问题
在debug的时候socket调用connect方法没问题,run的时候就会报异常,异常信息为java.net.ConnectException: failed to connect to /192.168.43.1 (port 8988) after 5000ms: connect failed: ENETUNREACH (Network is unreachable) 说是网络不可达。实在是不知道为什么了 然后调试的时候尝试ping server端的ip(192.168.43.1) 偶尔可以ping通,ping通就能connect成功,但是很不稳定.