有偿解决一个hbuilder app(H5)问题,通过手机数据网络微信授权登录App后,将手机网络切换到某硬件设备的WIFI,此WIFI不能上网,app通过tcp与设备进行通信,但是测试时发现tcp无法连接成功,报错信息如下:
Uncaught java.net.ConnectException: failed to connect to /192.168.4.1 (port 6666) from /:: (port 0): connect failed: ENETUNREACH (Network is unreachable);at new java.net.Socket at modifyElecBoxWifi.html:1
20:45:41.516 Uncaught java.net.ConnectException: failed to connect to /192.168.4.1 (port 6666) from /:: (port 0): connect failed: ENETUNREACH (Network is unreachable);at new java.net.Socket at modifyElecBoxWifi.html:1
其中:192.168.4.1是硬件设备的IP地址。
望高手指点。
手机:18570661280
0 个回复