2

I have a problem of my app.
When I request the server use dio, I will get this error:

Unhandled Exception: DioError [DioErrorType.DEFAULT]: SocketException: Connection failed (OS Error: No route to host, errno = 65), address = 192.168.10.241, port = 80

And on some phone there is no error but on some phone it will show these errors. I cannot figure it out. Please answer for that if you know.

'flutter doctor -v' is natural

Til
  • 5,150
  • 13
  • 26
  • 34
James
  • 23
  • 5

1 Answers1

0

I also had this problem, I fixed by uninstalling the antivírus on my iPad. Reference: Chathuranga Jayawardhana

If not works, check if the App is pointing to the correct iPv4 and port of the server on your local network

Setting NSAllowsArbitraryLoads to true may help for local tests as well (not recommended in production)

Rodrigo João Bertotti
  • 5,179
  • 2
  • 23
  • 34