[flutter] report error with Dio[ DioErrorType.DEFAULT ]: SocketException: OS Error: Connection refused, errno =11

The correct

[DioErrorType.DEFAULT]: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 53766

solution

  • what I use is Android emulator
  • the path of the request is: before http://localhost:8080/getHome
  • to: http://192.168.43.178:8080/getHome


Read More: