Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osama-raddad/1a271851b5ce6657a9fc7723b13c324d to your computer and use it in GitHub Desktop.
Save osama-raddad/1a271851b5ce6657a9fc7723b13c324d to your computer and use it in GitHub Desktop.
Proxy okhttp
OkHttpClient client = new OkHttpClient();
Proxy proxy = new Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved("192.168.1.105", 8081);
client.setProxy(proxy);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment