I used NanoHTTPD for my android application.
During the development I am running the app on an AVD. Is there a way to accessing the web service from my host system? What´s the IP address of the AVD?
I used NanoHTTPD for my android application.
During the development I am running the app on an AVD. Is there a way to accessing the web service from my host system? What´s the IP address of the AVD?
Use adb forward.
For example, if your NanoHTTPD listens to port 80 on AVD, run
adb forward tcp:20001 tcp:80
then you can connect to localhost:20001
on the host machine to access the server.