title: Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 56782 python
body: <p>I was trying to link the flutter app with python with API. My python code generated <a href="http://127.0.0.1:5000/" rel="nofollow noreferrer">http://127.0.0.1:5000/</a> URL. When I used this in flutter code it threw the error</p>
  <p>Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 56782</p>
  <p>I found a solution in <a href="https://www.youtube.com/watch?v=c0RVbqvdY2w" rel="nofollow noreferrer">this video</a></p>
  <p>Why does this solution work??</p>