views:

135

answers:

1

m3

Chrome using the windows' HOST file:

m1

Android emulator:

m2

edit

"On Windows, the emulator obtains the addresses by calling the GetNetworkParams() API. Note that this usually means that the emulator ignores the content of your "hosts" file (/etc/hosts on Linux/OS X, %WINDOWS%/system32/HOSTS on Windows)."

how can I use static IPs in the emulator?

+2  A: 

FWIW, it's not possible to change the phone's own /etc/hosts file within the emulator - it's on a read-only file system.

Personally, I'd run a local resolving server on your PC, point your Windows O/S at that, and then override the entries properly.

Unbound will do the job, and has a nice feature to allow you to insert "local data" into your DNS results.

Alnitak
I think it's the only way.. thank you!
Sirber