I apologize in advance, I'm not sure what category this question fits into, if you do know, please tell me and i'll update the tags.
I've got a very puzzling problem. I've got an android application that I want to use to make REST API calls to the dotCMS Content Management system.
Now a Sample REST call is
http://localhost/api/content/render/false...
But for some strange reason, this rest call fails.
http://127.0.0.1/api/content/render/false...
It seems to me that the CMS is bound to localhost, but not 127.0.0.1.
I'm assuming that 10.0.2.2 redirects to 127.0.0.1 hence my android application can't work. Is there a way to force the android emulator to call localhost instead of 127.0.0.1.
Alternatively is there way to bind my web application to 127.0.0.1 it comes bundled with a tomcat server.
Apologies, it looks like my Android application didn't have internet access. the app works now.