I would like to know how to get my Android app being simulated on an external device to communicate with a local API server running on my machine.
The app is using cordova and being run on an Android device using USB connection. I am running an API server locally.
Using my machine's IP address, I am trying to talk to the API server via HTTP calls within the app. But I get 404 errors in the debugger.
POST http://myIP:8083/api/login 404 (Not Found)
The API server is running and accessible. I have confirmed it by accessing it from the device's web browser. My hunch is that I have to whitelist my IP somewhere. But I am not sure. Any suggestions?
Using Cordova 5.3.3. Testing on LGE Nexus 5 Android 4.4.4 (API 19).