Issue
I want to get the currently running Android Emulator's IP address through code. How can it be achieved?
Solution
Just to clarify: from within your app, you can simply refer to the emulator as 'localhost' or 127.0.0.1.
Web traffic is routed through your development machine, so the emulator's external IP is whatever IP has been assigned to that machine by your provider. The development machine can always be reached from your device at 10.0.2.2.
Since you were asking only about the emulator's IP, what is it you're trying to do?
Answered By - Matthias
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.