Genymotion proxy with user/password

我的梦境 提交于 2019-11-28 20:37:13

问题


I'm running Android through Genymotion using the following configuration:

  • For the Host-Only I used 192.168.1.213 and DHCP allocates addresses starting with 192.168.1.214
  • My computer is behind a Squid proxy that has user and password, and address 192.168.1.2 with port 4444

I start the Android VM and in Genymotion Configuration I can see IP Management to be IP 192.168.1.214. I can also ping this address from my computer with success, so all good until here.

If I go to Menu -> Settings -> Wireless & Networks -> Wi-Fi -> WiredSSID -> Modify Network, I see IP address 10.0.3.15 - why is that?

Also, if I try to configure proxy, all I get is host and port, but no options for user/pass, so when I try to access a page in the browser, it says that proxy authentication doesn't work.

Is there a way to configure Android to work through my proxy? If so, what should I configure?

Thank you


回答1:


Your IP configuration looks correct. There is two connection between genymotion and your host.

  • The first one is only technical, to allow Genymotion to run (host only).
  • The other one is the one that will be used when trying to get internet from Genymotion. (NAT)

In Genymotion Settings, under proxy settings, you will be able to set your username & password for your proxy.

If you want to do more complex authentication schemes, like NTLM or Kerberos, Genymotion won't work. But as a workaround, you could use tools like Cntlm, or NtlmAps, that will provide a local, non authenticated, proxy and take care of upstream proxy authentication for Genymotion.

This settings will only work for the sofware Genymotion. Inside Android, you will also need to set a proxy in the settings. Go to: Settings -> Wi-Fi -> Long Click on "WiredSSID" -> Modify network -> Check "show advanced settings".

As mentionned there, the proxy will only works for the Browser, and maybe Gmail also. You will need to set it also on the settings of each app you trying to use. Not all of your apps will provide a proxy setting. I think Twitter does, but if your app doesn't provide one, you're screwed!




回答2:


I found a much simpler solution. All you have to do is to create a rule in proxifier which will let genymotion to use the host default ip. In this way it will manage to connect to the oracle virtual machine ( which has no problem with working with proxifier; obviously, in proxifier you will setup your proxy with its authentication credentials).



来源:https://stackoverflow.com/questions/20996772/genymotion-proxy-with-user-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!