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

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

问题描述

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

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

  • 对于 Host-Only,我使​​用了 192.168.1.213,DHCP 分配了以 192.168.1.214 开头的地址
  • 我的电脑位于 Squid 代理的后面,该代理具有用户名和密码,地址为 192.168.1.2,端口为 4444

我启动了 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)

在 Genymotion 设置中,在代理设置下,您将能够设置您的用户名 &您的代理的密码.

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

如果您想要执行更复杂的身份验证方案,例如 NTLM 或 Kerberos,则 Genymotion 将不起作用.但作为一种解决方法,您可以使用诸如 CntlmNtlmAps,它将提供一个本地的、未经身份验证的代理,并负责 Genymotion 的上游代理身份验证.

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 有,但如果你的应用没有提供,那你就完蛋了!

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天全站免登陆