I have a simple webservice (at 127.0.0.1:8000) that return a JSON. If i test the webservice from a browser (Edge, Firefox, any other) i get the JSON as expected. But from the Android code (an emulator on Android Studio) there is no answer. The webservice never respond. At follow i paste the code :
@Override
protected Void doInBackground(final Void... params) {
    List<MotivoFallaEntity> motivoFallaEntityList = new ArrayList<>();
    try {
        final String url = "http://192.168.0.6:8000/getPieceFaultReasons";
        RestTemplate restTemplate = new RestTemplate();
        restTemplate.getMessageConverters().add(new MappingJackson2HttpMessageConverter());
        motivoFallaEntityList = restTemplate.getForObject(url, MotivoFallaEntityWrapper.class);
    }
    catch (Exception e)
    {
        Log.e("Loggin", e.getMessage(), e);
    }
    mDb.motivoFallaDao().insertAll(motivoFallaEntityList);
    return null;
}
The IP address in the Android code (192.168.0.6) is the one that throws me the result of the command IPCONFIG.
 
     
    