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:

0

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

24 Comments

the address do not work for me, where you can find the localhost address in Android device
` static const String endPoint = '10.0.0.2:8001/v1';' here is my code after fixing
Did you try '10.0.0.2:8001/v1' or '10.0.0.2/v1'
I try both of them but it still do not work for me
here is my ip address in my computer " 192.168.18.23" and here is in android device " 192.168.18.22"
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.