如何将安卓模拟器连接到互联网

如何将安卓模拟器连接到互联网

问题描述:

如何将我的 Android 模拟器连接到互联网,例如使用浏览器?我找到了很多关于当您通过代理连接时该怎么做的建议,但这里的情况并非如此,我的机器 (Windows 7) 直接连接到路由器.

How can I connect my Android emulator to the internet, e.g. to use the browser? I've found lots of advice on what do to when your connected through a proxy, but that's not the case here, my machine (Windows 7) is directly connected to the router.

我认为一些答案可能已经解决了这个问题,无论多么间接,但这对我有用.

假设您的问题是在您使用无线网络并且安装了 LAN 卡时发生的,那么问题在于模拟器尝试从该 LAN 卡获取其 DNS 设置.当您通过该 LAN 连接时,这不是问题,但如果您使用无线连接,则完全没用.我在使用笔记本电脑时注意到了这一点.

那么,如何修复?简单:禁用您的 LAN 卡.真的.只需转到您的网络连接,找到您的 LAN 卡,右键单击它并选择禁用.现在试试你的模拟器.如果你像我一样,它会突然......有效!

I think some of the answers may have addressed this, however obliquely, but here's what worked for me.

Assuming your problem is occurring when you're on a wireless network and you have a LAN card installed, the issue is that the emulator tries to obtain its DNS settings from that LAN card. Not a problem when you're connected via that LAN, but utterly useless if you're on a wireless connection. I noticed this when I was on my laptop.

So, how to fix? Simple: Disable your LAN card. Really. Just go to your Network connections, find your LAN card, right click it and choose disable. Now try your emulator. If you're like me, it suddenly ... works!