如何在Android模拟器中绕过特定URL的代理 [英] How to bypass proxy for a specific URL in Android emulator
问题描述
我正在尝试在本机android应用程序中访问Web服务,并且我要访问的IP地址应绕过公司代理. 但是要将仿真器连接到Internet,我必须在仿真器中设置代理. 无论如何,我可以在模拟器中绕过该特定IP地址的代理吗?
I am trying to hit web services in native android application and the IP address which I am trying to hit should bypass corporate proxy. But to connect my emulator to internet I have to set proxy in emulator. Is there anyway I can bypass proxy for this specific IP address in emulator?
我的模拟器目前已连接到Internet,并且可以通过浏览器打开站点.
My emulator is connected to internet presently and can open sites through browser.
推荐答案
您需要设置一个中间代理,因为Android模拟器没有选项来设置不需要代理的内部服务器URL.尝试建议的方法
You need to set an intermediate proxy as Android emulator doesn't have options to set internal server URLs which don't need proxies. Try the approach suggested here. It works!
这篇关于如何在Android模拟器中绕过特定URL的代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!