SocketException: OS Error: Connection refused, errno = 111 code example
Example: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 43350
I went to the terminal and used ipconfig command
I got my IPV4 address: 192.168.1.101
Then I simply replaced this IP address with my "127.0.0.1:8000" in flutter app
http requests. And it worked like a charm!
For Laravel : php artisan serve --host 192.168.1.101 --port 80