How to connect android emulator to the internet

前端 未结 30 1528
独厮守ぢ
独厮守ぢ 2020-11-22 04:38

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

相关标签:
30条回答
  • 2020-11-22 05:12

    I had a similar problem on Win7 64 bit. Tried disabling my hamachi and virtualbox adapters and didn't work. Tried starting avd as admin and didn't work. In the end I disabled the teredo tunneling adapter using the info on this site and it worked: http://www.mydigitallife.info/2007/09/09/how-to-disable-tcpipv6-teredo-tunneling-in-vista/

    0 讨论(0)
  • 2020-11-22 05:13

    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!

    0 讨论(0)
  • 2020-11-22 05:13

    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?

    0 讨论(0)
  • 2020-11-22 05:14

    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.

    0 讨论(0)
  • 2020-11-22 05:15
    1. righ click on the Project in Eclipse
    2. select Run As -> Run Configurations ...
    3. select Android Application and then select "target" tab
    4. Looking for "Additional Emulator Command Line Options" and put this command line to text box

      -http-proxy http://< username >:< password >@< hostname >:< port >

    0 讨论(0)
  • 2020-11-22 05:18

    Thanks for the pointers. They really helped. The "Firewall" word clicked an idea in my mind.

    I have a Windows XP machine with WIFI connection and no proxy. I have Norton Internet Security running on my machine which has a Smart Firewall. This Smart Firewall manages programs' access to network, including emulator.exe. I went into Settings -> Program Control and then granted full access to emulator.exe. After this I started Android Emulator and bang... I could connect to internet.

    Hope this helps new folks.

    ~Saggy

    0 讨论(0)
提交回复
热议问题