Use okhttp to access the local host and report an error
java.net.ConnectException: Failed to connect to localhost/127.0.0.1
Solution:
use the local ip instead of 127.0.0.1/localhost
Use okhttp to access the local host and report an error
java.net.ConnectException: Failed to connect to localhost/127.0.0.1
Solution:
use the local ip instead of 127.0.0.1/localhost