How to bypass proxy for a specific URL in Android

2019-06-04 23:58发布

问题:

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?

My emulator is connected to internet presently and can open sites through browser.

回答1:

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!