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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to enable port forwarding in
adb. For example:This will forward incoming connections to localhost TCP/8080 to the emulator TCP/8080.
Here‘s the reference.