Home > Mobile >  Android Studio socket and okhttp3 connection error, can not login and registration, ask the great sp
Android Studio socket and okhttp3 connection error, can not login and registration, ask the great sp

Time:09-18

W/System. Err: java.net.SocketTimeoutException: failed to connect to/192.168.1.4 (port 8181) from/192.168.232.2 (port 39585) after 10000 ms
W/System. Err: at libcore. IO. IoBridge. ConnectErrno (IoBridge. Java: 185)
W/System. Err: at libcore. IO. IoBridge. Connect (IoBridge. Java: 130)
W/System. Err: at java.net.PlainSocketImpl.socketConnect (PlainSocketImpl. Java: 129)
W/System. Err: at java.net.AbstractPlainSocketImpl.doConnect (AbstractPlainSocketImpl. Java: 356)
W/System. Err: at java.net.AbstractPlainSocketImpl.connectToAddress (AbstractPlainSocketImpl. Java: 200)
W/System. Err: at java.net.AbstractPlainSocketImpl.connect (AbstractPlainSocketImpl. Java: 182)
W/System. Err: at java.net.SocksSocketImpl.connect (SocksSocketImpl. Java: 356)
W/System. Err: at java.net.Socket.connect (616) Socket. Java:
W/System. Err: at okhttp3. Internal platform. The AndroidPlatform. ConnectSocket (AndroidPlatform. Kt: 57)
W/System. Err: at okhttp3. Internal connection. RealConnection. ConnectSocket (RealConnection. Kt: 283)
The at okhttp3. Internal. Connection. RealConnection. Connect (RealConnection. Kt: 195)
The at okhttp3. Internal. Connection. ExchangeFinder. FindConnection (ExchangeFinder. Kt: 235)
W/System. Err: at okhttp3. Internal connection. ExchangeFinder. FindHealthyConnection (ExchangeFinder. Kt: 108)
W/System. Err: at okhttp3. Internal connection. ExchangeFinder. Find (ExchangeFinder. Kt: 76)
The at okhttp3. Internal. Connection. RealCall. InitExchange $okhttp (RealCall. Kt: 245)
W/System. Err: at okhttp3. Internal connection. ConnectInterceptor. Intercept (ConnectInterceptor. Kt: 32)
The at okhttp3. Internal. HTTP. RealInterceptorChain. Proceed (RealInterceptorChain. Kt: 100)
W/System. Err: at okhttp3. Internal cache. CacheInterceptor. Intercept (CacheInterceptor. Kt: 82)
The at okhttp3. Internal. HTTP. RealInterceptorChain. Proceed (RealInterceptorChain. Kt: 100)
The at okhttp3. Internal. HTTP. BridgeInterceptor. Intercept (BridgeInterceptor. Kt: 83)
W/System. Err: at okhttp3. Internal. HTTP. RealInterceptorChain. Proceed (RealInterceptorChain. Kt: 100)
W/System. Err: at okhttp3. Internal. HTTP. RetryAndFollowUpInterceptor. Intercept (RetryAndFollowUpInterceptor. Kt: 74)
W/System. Err: at okhttp3. Internal. HTTP. RealInterceptorChain. Proceed (RealInterceptorChain. Kt: 100)
W/System. Err: at okhttp3. Internal connection. RealCall. GetResponseWithInterceptorChain $okhttp (RealCall. Kt: 197)
The at okhttp3. Internal. Connection. RealCall. Execute (RealCall. Kt: 148)
W/System. Err: ats com BDSW. www.pwsystem.fragment.OrderFragment.getOrderMsg (112) OrderFragment. Java:
At com. BDSW. www.pwsystem.fragment.OrderFragment.access$200 (OrderFragment. Java: 48)
W/System. Err: ats com BDSW. www.pwsystem.fragment.OrderFragment$2.run (84) OrderFragment. Java:
The at Java. Lang. Thread. The run (Thread. Java: 764)

CodePudding user response:

A timeout error, first check the network, IP right

CodePudding user response:

My IP is a local area network (LAN) connection, don't know where is wrong

CodePudding user response:

And a port number, the port number right
  • Related