带有用户/密码的Genymotion代理 [英] Genymotion proxy with user/password

查看:303
本文介绍了带有用户/密码的Genymotion代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下配置通过Genymotion运行Android:

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

  • 对于仅主机,我使用了192.168.1.213,DHCP分配了以192.168.1.214开头的地址
  • 我的计算机位于具有用户名和密码,地址为192.168.1.2,端口为4444的Squid代理后面

我启动了Android VM,在Genymotion配置中,我看到IP管理为IP 192.168.1.214.我也可以通过计算机对这个地址执行ping操作,因此一切正常,直到这里为止.

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.

如果我进入菜单->设置->无线&网络-> Wi-Fi-> WiredSSID->修改网络,我看到IP地址10.0.3.15-为什么?

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.

是否可以将Android配置为通过代理工作?如果是这样,我应该配置什么?

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

谢谢

推荐答案

您的IP配置看起来正确. genymotion和您的主机之间有两种联系.

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

  • 第一个仅是技术性的,允许Genymotion运行(主机 只要).
  • 另一个是尝试获取时使用的 Genymotion提供的互联网. (NAT)
  • 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)

在Genymotion设置的代理设置下,您可以设置用户名&您代理的密码.

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

如果您想执行更复杂的身份验证方案,例如NTLM或Kerberos,Genymotion将不起作用.但是,作为解决方法,您可以使用 Cntlm

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.

此设置仅适用于软件Genymotion. 在Android内部,您还需要在设置中设置代理. 转到:设置-> Wi-Fi->长按"WiredSSID"->修改网络->选中显示高级设置".

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".

如此处所述,该代理仅适用于浏览器,也许也适用于Gmail. 您还需要在尝试使用的每个应用程序的设置上进行设置. 并非所有的应用程序都会提供代理设置.我认为Twitter可以,但是如果您的应用程序不提供Twitter,那么您就搞砸了!

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!

这篇关于带有用户/密码的Genymotion代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆