Proxy which requires authentication with Android Emulator

前端 未结 16 1373
北海茫月
北海茫月 2020-11-30 03:07

Has anybody managed to get the Android Emulator working behind a proxy which requires authentication?

I\'ve tried setting the -http-proxy argument to



        
相关标签:
16条回答
  • 2020-11-30 03:19

    I will explain all the steps:

    1. Go to settings in Android emulator > Wireless & Network > Mobile network > Access point > Telkilla > and here do necessary settings such as proxy, port, etc.

    I think now everything is clear about proxy settings...

    0 讨论(0)
  • 2020-11-30 03:20

    I've not used the Android Emulator but I have set the $http_proxy environment variable for perl and wget and a few cygwin tools on windows. That might work for you for android, but the slash in the domain name seems like a potential problem. I know I tried having my domain "GLOBAL" in there, but ended up taking it out and sticking with: http://$USER:password@www-proxy.company.com:80

    One problem I run into a lot though is programs that cannot be told to use the proxy for DNS queries too. In cases where they don't I always get a host name not found. I'd like to find a local dns resolver that can use the proxy for all the programs that won't.

    0 讨论(0)
  • 2020-11-30 03:21

    For Android2.3.3 Settings->Wireless&Networks->MobileNetworks->AccessPointNames->Telkila-> set the Proxy and the Port here (xx.xx.xx.xx and port)

    0 讨论(0)
  • 2020-11-30 03:22

    For setting proxy server we need to set APNS setting. To do this:

    • Go to Setting
    • Go to wireless and networks
    • Go to mobile networks
    • Go to access point names. Use menu to add new apns
    • Set Proxy = localhost
    • Set Port = port that you are using to make proxy server, in my case it is 8989

    For setting Name and apn here is the link:

    According to your sim card you can see the table

    0 讨论(0)
  • 2020-11-30 03:24
    1. Find the file androidtool.cfg at C:\Documents and Settings\YOUR USER NAME\.android\

    2. Add this line:

      http.proxyLogin=USER@PASSWORD
      
    3. Save the file and try to open the Android SDK.

    0 讨论(0)
  • 2020-11-30 03:26

    With the new versions of Android Studio and it's emulator it is an easy task.

    Press emulator's "More" button, choose Settings -> Proxy tab. All the needed configurations are there.

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