0

Consider:

  static const String endPoint = 'http://192.168.18.22:8001/v1';

Here is my configuration for my endPoint project. "192.168.18.22:8001" is my IP address in my Android device:

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
LeThanhDat
  • 19
  • 6
  • Something *seems* to be missing at the end. Or not? Can you clarify by [changing your question](https://stackoverflow.com/posts/76499718/edit)? (But *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***[without](https://meta.stackexchange.com/a/131011)*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** "Edit:", "Update:", or similar - the question should appear as if it was written right now.) – Peter Mortensen Jun 18 '23 at 10:55

1 Answers1

0

If you're running on an Android device, the localhost address is usually 10.0.0.2.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
rasityilmaz
  • 764
  • 1
  • 6
  • 11