Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android emulator and local site

I've started android emulator app and trying to open from embeded browser locally started web-site, but local dns name (from /etc/hosts) is not resolved. Is there any option to enable local resolving?

like image 267
Alexey Poimtsev Avatar asked Jul 14 '10 05:07

Alexey Poimtsev


1 Answers

Refer this URL. The issue is 127.0.0.1 is not the correct IP for accessing local server sites on emulator.

http://localhost:8080/MyTestPage.html // URL to use in computer browser
http://10.0.2.2:8080/MyTestPage.html  // URL to use in emulator browser

However, you need to do some configuration changes as suggested in the URL.

like image 57
TheCottonSilk Avatar answered Sep 29 '22 11:09

TheCottonSilk