I am developing an Android Application with Restful architecture using the Retrofit library. Everything worked in a certain part of the project, but this has changed in the last time. All links defined in the codes are defined, the IP address that I use for the localhost that has internet permission for the application, and this application works flawlessly on Genymotion or all different Android phones. But only the requests that I send to my service for my mobile phone give errors.
In the code example, I'll give below, the requests I've tried from all devices are entering the onResponse method and entering the onFailure part of my device.
@Override
public void onFailure(Call<ProfileP> call, Throwable t) {
Toast.makeText(getActivity(),"Check your internet connection!", Toast.LENGTH_SHORT).show();
}
I need to run this application on my own device.