3

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?

Robert
  • 7,394
  • 40
  • 45
  • 64
Shrew
  • 31
  • 1

1 Answers1

1

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.

zakgof
  • 213
  • 2
  • 8