Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DNS Problem with Android Emulator

I cannot use the browser and internet connection in my android app with android simulator.

When I try to open a homepage using the native webbrowser in the emulator, but when I use the ip address, it opens just fine.

How can I fix DNS problems in the android Emulator.

I already turned off the Windows Firewall, but it didn't work.

Data: Windows 7 x64 / Eclipse Plugin for Android / Android version 2.1

like image 514
rlc Avatar asked Feb 13 '26 05:02

rlc


1 Answers

Do you have multiple NICs on your machine? The emulator might be trying to use a DNS that it cannot access (i.e. going through the wired DNS server if wired is disconnected). You can check which DNS server is being used by starting the emulator with the -debug-slirp flag.

See here for more info.

like image 197
Ben Siver Avatar answered Feb 14 '26 19:02

Ben Siver