err 111 Flutter VS Laravel 8

  apache, exception, flutter, http, laravel

I’m currently working on a project where i got stuck on connecting Laravel 8 with Flutter. When I run the API normal inside Postman, everything works perfectly once I try it inside Flutter i got the follow error.

Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = [IP Address Server], port = 43798

I don’t understand, the code is fine. When I Call the API inside another laravel project then it works perfectly, only when I call it in Flutter i got this error.

What can it be. We don’t run it locally it is server -> flutter

Source: Laravel

Leave a Reply