Close-up of a smartphone showcasing various mobile applications on its display. · Photo by Arif  Syuhada on Pexels
Photo by Arif Syuhada on Pexels

How To Set A Proxy On Android The Right Way

Learn how to configure a proxy on Android, choose the right settings for your network, and troubleshoot common connection issues while improving your privacy and control over internet traffic.

By Dale Weinbaum, California Business Journal

Share on:

Android has no single proxy switch. The Wi-Fi dialog covers the browser and WebView on one network, the APN covers mobile data, a per-app routing app is the only non-root way to use SOCKS5 with a login and password, and one ADB command sets a global HTTP proxy for test devices. Pick the wrong method and the setting saves fine, yet a scraper still reports the device's real IP.

Where Android applies proxy settings

A Wi-Fi proxy is stored as a ProxyInfo object scoped to that one network, and Chrome and WebView read it directly. Apps built on OkHttp or URLConnection usually honor it too, because those libraries consult java.net.ProxySelector. Apps with their own networking stack, certificate pinning or native sockets often don't. That is the usual reason a proxy "isn't working": it works, just not for the app you're watching.

Method

Traffic scope

Protocols

Login and password

Best For

Wi-Fi manual proxy

Browser and WebView

HTTP, HTTPS

No

SERP checks, ad verification

APN proxy

Mobile data

HTTP

No

Carrier-network testing

Per-app routing app

Selected apps

HTTP, HTTPS, SOCKS5

Yes

Data-collection clients

ADB global proxy

System-wide HTTP

HTTP, HTTPS

No

Test devices, CI labs

Wi-Fi proxy for browser and WebView

It's the fastest option and the default for SERP sampling and ad-creative checks. On a Pixel with Android 14:

  1. Open Settings > Network & internet > Internet and tap the gear next to the connected network.

  2. Tap the pencil icon, expand Advanced options and set Proxy to Manual.

  3. Enter the hostname (an IP works despite the label) and the port.

  4. List hosts that should skip the proxy, such as captive-portal domains, in "Bypass proxy for", separated by commas.

  5. Save and open a browser.

Samsung One UI starts at Settings > Connections > Wi-Fi with the same field labels. The dialog has no login fields, so an authenticated proxy needs IP whitelisting or the browser's auth prompt. It is also HTTP-only, so a SOCKS5 endpoint fails without a clear error.

APN proxy for mobile data

Wi-Fi settings never touch cellular traffic. On Samsung, open Settings > Connections > Mobile networks > Access Point Names, edit the active APN, fill in Proxy and Port, then toggle mobile data off and on. Some carriers ignore the field and some locked devices block APN edits, so test first.

Per-app routing for SOCKS5

For SOCKS5 proxies with credentials, a routing app is the cleanest non-root option. It registers a local VpnService interface, captures traffic from the apps you select and forwards it upstream, so a data-collection client and a QA build can each use a different IP. The routing app sees everything it forwards, so use a maintained open-source project.

ADB global proxy for test rigs

With USB debugging on, one command sets a device-wide HTTP proxy:

adb shell settings put global http_proxy 45.10.x.x:8080

Running adb shell settings put global http_proxy :0 clears it. The value is global, so it survives Wi-Fi reconnects, and one line is easy to version-control across a fleet of test phones. For emulators in CI, the -http-proxy launch flag tunnels all egress at the QEMU layer, and no app can opt out.

Android accepts PAC files but not WPAD auto-discovery, so type the .pac URL manually.

Verifying the proxy works

A saved setting is not a routed request. Run the IP check inside the app you care about, or call your own endpoint and log the inbound IP. If the real IP still shows, that app ignores the system proxy and needs per-app routing or ADB. Instant failures point to a SOCKS5 endpoint in an HTTP-only field, and 407 errors mean the proxy expects credentials the Wi-Fi or APN screen can't send. Run a DNS-leak check, and test the proxy itself in Proxy Checker.

Choosing the proxy behind the configuration

A flagged or wrong-region IP gets throttled on the first batch of requests however clean the setup is. Proxys.io sells dedicated datacenter IPv4 from about $1.47 per IP per month, while mobile and residential proxies suit carrier-grade testing. Before buying in volume, test a few IPs against the real target, since a provider's region label and the target's geolocation database don't always agree.

Copyright © 2026 California Business Journal. All Rights Reserved.

For California Business Journal Disclaimers, go to https://calbizjournal.com/terms-conditions/.

Advertisement

Advertisement: Ruth's Chris Steak House