How to connect android emulator to the internet

2018-12-31 07:48发布

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.

30条回答
旧时光的记忆
2楼-- · 2018-12-31 08:06

I found that starting the emulator with 'wipe user data' checked cleared this problem up for me after I rebuilt my dev machine from Vista x64 to Win7 x64.

查看更多
爱死公子算了
3楼-- · 2018-12-31 08:08

In order to use internet via proxy on emulator try these steps it Worked for me:

Go to settings->Wireless & networks->mobile networks->Access Point Names. Press menu button. an option menu will appear.

from the option menu select New APN.

Click on Name. provide name to apn say My APN.

Click on APN. Enter www.

Click on Proxy. enter your proxy server IP. you can get it from internet explorers internet options menu.

click on Port. enter port number in my case it was 8080. you can get it from internet explorers internet options menu.

Click on User-name. provide user-name in format domain\user-name. generally it is your systems login.

Click on password. provide your systems password.

press menu button again. an option menu will appear.

press save this and try to open your browser. I think it has helped u?

查看更多
裙下三千臣
4楼-- · 2018-12-31 08:09

After reading this I decided to look at my "NICs". I put this in quotes because like many I am running virtual nics for devices like Hamachi and Virtual Box. After I disabled Hamachi I am able to use the internet. My guess is that the emulator picks the first available nic regardless of whether it is virtual. Now to find out if I can rearrange my nic order without tearing my box down.

Windows 7 32bit

查看更多
人间绝色
5楼-- · 2018-12-31 08:10

Have you tried starting the emulator with administrative privileges? It worked for me, I'm running Windows 7 64bit)

查看更多
笑指拈花
6楼-- · 2018-12-31 08:10

I had similar problem. I have installed an application that required INTERNET permission (and used it), and all of sudden, worked.

Guys, check also whether if you are not connected through a VPN somewhere, because it also can disturb the Internet connection.

blacharnia

查看更多
初与友歌
7楼-- · 2018-12-31 08:10

I'm not sure if this is your issue, but here's how I fixed mine.

I always had this "No DNS servers found" error when starting the emulator and did a lot of research on google to no avail. Anyway, I found a post somewhere (can't find it anymore) that was saying that the number of NICs, number of DNS entries could affect the emulator. Also, knowing that the emulator uses a Windows API function (GetNetworkParams()) to resolve DNS entries, I couldn't rely on the %WINDOWS%\System32\Hosts file.

However, I did went in the NICs properties (on Windows 7) to find that I was specifying a static IP, but no DNS entries. So, I got the DNS entries from my router and plugged them in the NICs property. I restarted the emulator and it is now using the correct DNS entries!

I can use my internet connection with the emulator now, and it works wonders!

Hope it helps!

查看更多
登录 后发表回答