I\'m trying to debug the helloword sample on real device. After lots of searching, I\'ve managed to do some settings.
What I did to debug on real device:
Accepted answer solves the issue. Mentioning steps for deploying GAE from Android studio with screenshots hoping it would save save some more dev time. In Android studio.
How can i access my localhost from my android device?
USB doesn't provide network to mobile device. If it's connected to your wifi, then hit your laptop address provided by the router. If it's connected to your mobile network, then first find out your router external IP address, then forward some port to that 10.0.2.2:portno and finally you'll be able to see that server from your device.
You used 192.168.1.107 as your IP, which looks like an internal IP address to me. Try if setting your external IP address fixes the problem.
Actually just setting --address=0.0.0.0 --port=8888
in launch configuration params fixed the issue.
Rest of the settings stayed as in the question.