I have a HTTP server working on my android emulator listening to port 8080. How can I connect to it from same PC's browser? I tried 127.0.0.1 but it couldn't connect.
You have to enable port forwarding in adb
. For example:
adb forward tcp:8080 tcp:8080
This will forward incoming connections to localhost TCP/8080 to the emulator TCP/8080.
Here's the reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With