Phones and tablets

How to set up a proxy on Android

Android has a manual proxy setting on each Wi-Fi network with a hostname, a port and a bypass list, but no username or password fields. Chrome fills that gap by asking for the credentials when it first connects, while apps that cannot show a sign-in need either an IP allowlist or a proxy app.

This guide covers the menus on stock Android and Samsung phones, signing in from Chrome, setting the proxy from a computer with adb, the Android Emulator flag for developers and why the APN proxy field is not the place for this.

Updated 23 November 2026

What you need
Hostgate.firstproxy.shop
HTTP / HTTPS port8000
SOCKS5 port9000
Usernameuser-country-br
PasswordYOUR_TOKEN

The Wi-Fi setting is an HTTP proxy: use port 8000. SOCKS5 on port 9000 with a password needs a proxy app. Your username and token appear on the Proxy setup page of your dashboard after your first order.

Setup

How do I connect Android to a proxy?

Follow the steps in order. Replace YOUR_TOKEN with the token from your dashboard and change the country, city or session in the username to suit the job.

  1. Open the Wi-Fi network settings

    On stock Android and Pixel phones open Settings, Network and internet, Internet, then tap the gear next to your Wi-Fi network and tap the edit (pencil) icon. On Samsung Galaxy phones open Settings, Connections, Wi-Fi, tap the gear next to the network and tap View more. Menu names vary a little by Android version.

  2. Set the proxy to Manual

    Open Advanced options if the proxy setting is hidden, set Proxy to Manual and enter the values below. Save the network.

    Set the proxy to Manual: settings
    FieldValue
    ProxyManual
    Proxy hostnamegate.firstproxy.shop
    Proxy port8000
    Bypass proxy forlocalhost,127.0.0.1
  3. Sign in from Chrome

    Open Chrome and load any page. Chrome asks for a username and password for the proxy. Enter the full username with targeting and your token. Chrome keeps them until it is fully closed.

    Sign in from Chrome: settings
    FieldValue
    Usernameuser-country-br-city-sao-paulo-session-and1-ttl-60m
    PasswordYOUR_TOKEN

    Apps that cannot show this sign-in dialog fail to connect or skip the proxy. For them, add the public IP of your Wi-Fi connection to the allowlist in the dashboard, or use a proxy app.

  4. Set the proxy from a computer with adb

    For test phones connected over USB debugging, adb sets the same global HTTP proxy without tapping through menus. Remember to clear it afterwards, or the phone keeps trying to use it.

    adb shell settings put global http_proxy gate.firstproxy.shop:8000
    
    # remove it again
    adb shell settings put global http_proxy :0
  5. Use the proxy in the Android Emulator

    The emulator accepts a proxy with credentials when it starts, which covers every app inside it, including ones that cannot show a sign-in dialog.

    emulator -avd Pixel_8 \
      -http-proxy "http://user-country-br:YOUR_TOKEN@gate.firstproxy.shop:8000"
  6. Leave the APN proxy field alone

    Settings for mobile data include an Access Point Names screen with Proxy, Port, Username and Password fields. The username and password there belong to your carrier, not to the proxy, and a wrong APN can cut off mobile data. For mobile data, use a proxy app that supports authenticated HTTP or SOCKS5 and routes traffic through a local VPN.

Test

How do I check that the proxy works?

Open Chrome and go to ipinfo.io/json. The IP, city and country should be those of the exit, here Sao Paulo, Brazil. Repeat after a few minutes to confirm a sticky session keeps the same IP.

A working proxy returns a response like the one shown, trimmed to the main fields. The IP belongs to the exit, the city and country follow your username, and the time zone is where that IP is located, here Brazil.

ipinfo.io/json response
{
  "ip": "203.0.113.24",
  "city": "Sao Paulo",
  "country": "BR",
  "timezone": "America/Sao_Paulo"
}

203.0.113.24 is a documentation address. Your result shows a real exit IP.

Targeting

How do I set country, city and session in the username?

All targeting is written into the username, so Android needs no extra settings to change location. Parts are joined with hyphens in this order after your proxy user. The password is always your token.

Proxy username parts
PartFormatExampleRule
Country-country-{cc}-country-brRequired. Two-letter country code in lowercase. 64 countries are available.
City-city-{city}-city-sao-pauloOptional. City name in lowercase, spaces become hyphens. 172 cities are available.
Session-session-{id}-session-a1b2c3Optional. Any letters and digits you choose. The same id keeps the same IP, a new id gets a new IP.
Session length-ttl-{minutes}m-ttl-30mUsed with a session. Residential 1 to 120 minutes, mobile 1 to 60, long-acting ISP up to 720 (12 hours).
Full usernameuser-country-br-city-sao-paulo-session-a1b2c3-ttl-30m

Find country codes and city values on the proxy locations page.

Troubleshooting

Android proxy errors and fixes

The problems people run into most often with Android, with the message you are likely to see and how to solve it.

Chrome never asks for a password and pages fail

The proxy hostname or port is wrong, so Chrome never reaches the gateway. Edit the network again and check for typos or a trailing space in the hostname.

The sign-in prompt keeps reappearing

The username or token is wrong. Keyboard autocorrect often adds capitals or spaces, so turn it off while typing or paste the values.

Apps show my real IP or no connection

Many apps ignore the Wi-Fi proxy or cannot sign in to it. Use the IP allowlist for that Wi-Fi network, or a proxy app that captures all traffic through a local VPN.

Internet stops working after testing with adb

The global proxy is still set. Run adb shell settings put global http_proxy :0 to remove it.

The proxy is gone on mobile data

The setting belongs to one Wi-Fi network. On mobile data the phone connects directly unless a proxy app is running.

FAQ

Android proxy questions

Short answers to what people ask most about using a proxy with Android.

How do I set a proxy on Android?

Open your Wi-Fi network settings, choose Advanced options, set Proxy to Manual and enter hostname gate.firstproxy.shop and port 8000. Save, then sign in with your username and token when Chrome asks.

Why is there no username field in the Android proxy settings?

The built-in Wi-Fi proxy only stores a hostname, port and bypass list. Chrome asks for credentials itself, and other apps need an IP allowlist or a proxy app that supports authentication.

Can I use a proxy on Android mobile data?

Not with the Wi-Fi setting. Use a proxy app that routes traffic through a local VPN and supports an authenticated HTTP or SOCKS5 proxy. Do not change your APN for this.

How do I use a proxy in the Android Emulator?

Start it with -http-proxy followed by the proxy URL, including the username and token. Every app inside the emulator then uses the proxy.

Get your token and run the first Android request

Create an account, top up from $40 with crypto, and copy the gateway, username and token from the dashboard.