Android Proxy Settings for Rotating Proxies

Android proxy settings are configured either globally for a Wi-Fi network or individually within apps that support SOCKS5. You connect to the gateway at gw.rotatingproxy.cc, using port 7070 for HTTP/HTTPS traffic or port 7071 for SOCKS5.

Key points
  • Configure a proxy for a specific Wi-Fi network in Android's network settings.
  • Use port 7071 and SOCKS5 for apps like Termux, cURL, or custom crawlers.
  • Target countries, US states, and cities by adding options to the proxy username.
  • Keep the same IP for a session by using a session ID and TTL.

Where to Find Android Proxy Settings

Android proxy settings are managed per Wi-Fi network, not system-wide. To configure a proxy for your current Wi-Fi connection, open the Settings app, tap "Network & internet," then "Internet." Long-press on the connected network name and select "Modify network." Tap "Advanced options" to reveal the proxy settings menu. Here you can choose between "None," "Manual," and "Proxy auto-config (PAC)." For RotatingProxy, you will use the "Manual" setup. This configuration only applies to HTTP and HTTPS traffic from apps that respect the system proxy settings; it does not apply to cellular data or other Wi-Fi networks. To use a proxy with cellular data or for apps that ignore system settings, you must configure the proxy within the app itself, which is common for development tools and scraping scripts.

Manual Wi-Fi Proxy Setup on Android

For a manual Wi-Fi proxy setup on Android, select "Manual" in the proxy dropdown after tapping "Modify network" for your Wi-Fi. In the "Proxy hostname" field, enter gw.rotatingproxy.cc. In the "Proxy port" field, enter 7070 for HTTP/HTTPS traffic. Leave the "Bypass proxy for" field blank unless you have specific hosts that should not use the proxy. This setup will route most web traffic from browsers and many apps through the RotatingProxy gateway. However, note that this method only supports HTTP proxy authentication, which our gateway accepts on port 7070. You will need to enter your proxy credentials in the next step to complete the setup.

Adding Proxy Authentication Credentials

Android's manual proxy settings do not have dedicated username and password fields. Instead, authentication is handled via a "Proxy auto-config" URL or by embedding credentials in the hostname field. For RotatingProxy, you must embed your proxy user's login and password directly in the "Proxy hostname" field using the format username:password@host. For example, if your proxy login is USERNAME_net.res_cc.us and password is PASSWORD, you would enter USERNAME_net.res_cc.us:PASSWORD@gw.rotatingproxy.cc in the hostname field, with port 7070. This passes the credentials for the initial HTTP CONNECT tunnel. Remember to create a proxy user in your dashboard first and ensure it is allowed to use the network you specify (e.g., net.res).

Using SOCKS5 Proxy on Port 7071 in Apps

Many Android apps and development environments support SOCKS5 proxies directly, which can offer better compatibility for non-HTTP traffic. To use SOCKS5, you cannot use the global Wi-Fi settings; you must configure the proxy within the app. The gateway host is the same, gw.rotatingproxy.cc, but the port is 7071. Apps like Termux (a Linux terminal emulator), cURL, Python scripts with requests or httpx, and some browser apps with advanced settings allow you to set a SOCKS5 proxy with authentication. This is ideal for web scraping tasks run directly on an Android device or for checking geo-restricted content from a mobile IP perspective.

Example: Configuring cURL in Termux with SOCKS5

After installing Termux from F-Droid or the Play Store, you can use cURL with a SOCKS5 proxy. The command structure includes the proxy host, port, and credentials. Open Termux and run a command like the following, replacing the username and password with your proxy user's details:

curl -x socks5://USERNAME_net.mob_cc.de:PASSWORD@gw.rotatingproxy.cc:7071 https://api.ipify.org

This command routes the request through the rotating mobile network in Germany (net.mob_cc.de) and should return the exit IP address. For more complex targeting, such as adding a city or sticky session, build the full username string. For example, to target Berlin with a 30-minute sticky session:

curl -x socks5://USERNAME_net.mob_cc.de_city.berlin_sid.abc123_ttl.30:PASSWORD@gw.rotatingproxy.cc:7071 https://ipinfo.io/json

This approach is also useful for social media management tools that run on mobile devices.

Targeting Countries, States, and Cities

You control the exit location by adding options to the proxy username. The basic format is your proxy login, an underscore, then a series of key.value options separated by underscores. For country targeting, add cc.xx where "xx" is the lowercase ISO country code (e.g., cc.us, cc.jp). For US state targeting, you must also have cc.us and can add st.ca for California. For city targeting, add city.name using the lowercase city token from our locations list (spaces become hyphens, e.g., city.new-york). An example username for a residential proxy in Chicago would be USERNAME_net.res_cc.us_city.chicago. Remember that city targeting is only available for residential and mobile networks; datacenter and ISP proxies support country targeting only. A detailed side-by-side look is in residential vs mobile proxies.

Setting Up Sticky Sessions on Android

A sticky session lets you hold onto one exit IP for a set time, which is needed for jobs that require staying logged in or a stable identity. To enable a sticky session, add two options to your username: sid.xxxxxx and ttl.xx. The session ID (sid) can be any 6 to 16 character string of lowercase letters and digits (e.g., sid.k3m9q2). The TTL (ttl) is the session lifetime in minutes, from 1 to 120. If you set a sid but omit ttl, it defaults to 10 minutes. For example, to use a mobile IP in France with a 20-minute session, your username would be USERNAME_net.mob_cc.fr_sid.a7k2m9_ttl.20. Any connection using that exact username will share the same IP for up to 20 minutes. This is crucial for ecommerce data collection where you might be logged into a seller account.

How to Verify Your Exit IP and Location

After configuring your proxy, you must verify that traffic is exiting from the expected IP and location. The simplest method is to use a web service that returns your IP. In a browser on your Android device (with the Wi-Fi proxy configured), visit https://api.ipify.org - it will return a plain text IP address. For more details like location and ISP, visit https://ipinfo.io/json. If you are using SOCKS5 within an app like Termux, use the cURL command shown earlier. Compare the returned IP's country against your target. If the location is incorrect, look over the username options again for any mistakes. For a deeper understanding of IP geolocation accuracy, read our guide on how accurate is IP geolocation.

Fixing Common Proxy Errors on Android

Error 407 (Proxy Authentication Required) usually means the username or password is incorrect or not properly formatted in the hostname field. Ensure you are using the format username:password@host and that the proxy user exists and is not paused. Timeouts can occur if the device's network blocks the proxy ports 7070 or 7071; try on a different Wi-Fi network or cellular data. TLS/SSL errors in browsers sometimes happen if the system proxy intercepts certificate validation; this is rare with our gateway. If a target site returns a 403 Forbidden error, the exit IP may be temporarily blocked; our system automatically rotates IPs, so retrying the request (without a session ID) will get a new IP. For more, see our help pages on error 407 and proxy timeouts.

Tips for Running at Scale on Android

While Android devices are not typical high-volume scraping servers, they can be useful for distributed mobile app testing or small-scale data collection. To run effectively, first understand concurrency limits - your account allows up to 1,000 concurrent connections shared across all devices. Use Termux to run Python scripts with libraries like aiohttp for asynchronous requests, but keep concurrency per device moderate to avoid overwhelming the device's resources. Set up retry strategies that use exponential backoff. Most importantly, monitor your pay-as-you-go balance closely, as traffic is metered. Use the dashboard to set monthly GB caps on proxy users to prevent unexpected usage. For large projects, consider using our aiohttp integration on a server instead.

Switching Between Proxy Networks

You can easily switch between RotatingProxy's four networks by changing the net. option in your username. Use net.res for rotating residential IPs from households in over 177 countries. Use net.mob for rotating mobile IPs from 3G/4G/5G carriers in 87 countries. Use net.dc for rotating datacenter IPs from servers in 16 countries. Use net.isp for rotating ISP IPs, which are registered to consumer ISPs but hosted on fast servers, available in 12 countries. Each network has different pricing (starting at $1.79 per GB for residential, $3.00 for mobile, $0.36 for datacenter, and $1.80 for ISP) and performance characteristics. Choose based on your target's blocking sensitivity; for example, use residential or mobile proxies for Instagram and datacenter for Wikipedia data.

Questions

Can I use the proxy on Android with cellular data instead of Wi-Fi?

The global proxy setting in Android only works for Wi-Fi networks. To use the proxy with cellular data, you must configure it within each individual app that supports proxy settings, such as Termux, a custom browser, or a scraping app.

Does the Android Wi-Fi proxy setting work for all apps?

No, it only works for apps that respect the system proxy settings. Many apps, especially games and some social media apps, may ignore it. For those, you need to use an app-specific proxy configuration or a VPN-style proxy app (which we do not provide).

How do I know if my app supports SOCKS5 proxy?

Check the app's settings or documentation for "proxy" configuration. Development tools like Termux, cURL, Python, and Node.js environments typically support SOCKS5. Some browser apps like Kiwi Browser allow SOCKS5 in their flags or extension settings.

What happens if I forget to add the password in the hostname field?

You will get a 407 Proxy Authentication Required error. The connection will not be established. Double-check that you are using the format username:password@host in the "Proxy hostname" field of your Wi-Fi settings.

Can I apply the same proxy configuration to several Android devices?

Yes, you can use the same proxy user credentials on multiple devices. All traffic will be deducted from your shared account balance. Be mindful of the 1,000 total concurrent connection limit across all your devices and scripts.

My app works without a proxy but times out with the proxy. What should I do?

First, test a simple IP check command in Termux to verify the proxy works at all. If that fails, your network (like a school or corporate Wi-Fi) may be blocking outbound connections to ports 7070/7071. Try using cellular data as a hotspot or a different network.

Start with one top-up, use any network

Create an account in a minute, add $40 or more, and the same balance pays for residential, mobile, datacenter and ISP traffic.