I tried to run my retrofit library using example to store data into local server and run from emulator then its works fine but when i run from my mobile then give some error. my question is that how do i run this from my mobile and which kind of ip address i use ?
public static final String ROOT_URL = "http://10.0.2.2:8080"; and also giving error from, public static final String ROOT_URL = "http://127.0.0.1:8080";
with emulator it works but not from any mobile, mobile is supportable and its api level is kitkat and more.