How do I connect to these local host web servers in the Eclipse Android Emulator http://localhost or http://127.0.1?
I tried both of the addresses above, but it only says that I couldn't find the page.
The server is working fine.
android genymotion android-emulator
The localhost refers to the device on which the code is running, in this case the emulator.
If you do that, you will be connected to the local host of the Android device. In this case, to the local host of the emulator. If you want to access the web server on your computer, you can access it with 10.0.2.2 IP.
© 2024 OneMinuteCode. All rights reserved.