Calling Rest API from android device


I am trying to call a rest api from ionic code. Rest api is also developed in my local system. IP address of my windows system is The get request api has url is:
Now the problem:
I am able call the rest api when i build/run the app using command
ionic lab (as this opens up the app on browser)
this also work when ionic code runs on emulator by command.
ionic cordova run android --e78ab88d.

This FAILS when i run the code on actual android device by using command.
ionic cordova run android --device

Need help on this.

I am to solve this problem. The issue was in the way connection between mobile and computer was established. Shouldn’t have raised the question.