Quick answer
How do I set up AsiaProxies proxies in cURL, Python or a browser?
Point the tool at gw.asiaproxies.com, port 7777 for HTTP(S) or 7778 for SOCKS5, and log in with the AsiaProxies username and password from the dashboard. Country, city and a sticky session of 1 to 30 minutes are set inside the username, so 5 common tools need no plugin: cURL, Python requests, Node.js, Playwright and Scrapy.
In brief
- Gateway:
gw.asiaproxies.com, HTTP(S) port 7777, SOCKS5 port 7778, the same for every country. - Targeting:
USERNAME-country-{cc}, then optional-city-{city},-session-{id}and-ttl-{minutes}. - Sticky sessions: 1 to 30 minutes; without a session, each new connection usually gets a new IP.
- Mobile ports: rotation by link at most once every 30 seconds, or a timer from every 2 minutes to every 24 hours.
- Blocked for every account: bank, government and payment-portal sites, and SMTP.
Connection details
| Gateway host | gw.asiaproxies.com |
|---|---|
| HTTP / HTTPS port | 7777 |
| SOCKS5 port | 7778 |
| Username template | USERNAME-country-{cc}-city-{city}-session-{id}-ttl-{minutes} |
| Sticky sessions | up to 30 minutes (the IP can change earlier) |
| Mobile IP rotation link | https://asiaproxies.com/api/v1/mobile/{port}/rotate?key=API_KEY |
| Blocked | Bank, government and payment-portal sites; SMTP ports |
| KYC | None — no ID, no selfie, no documents |
How do I get from purchase to first request?
Five steps, once the top-up is credited to the balance.
Buy a pack
Choose a residential pack, a dedicated port or mobile data on the pricing page. Pay in USDT, BTC, ETH, USDC, LTC or SOL.
Copy your credentials
Open the dashboard and copy your proxy username and password. Keep them private.
Build the username
Add the country code, and optionally a city, session ID and TTL, using the template
USERNAME-country-{cc}-city-{city}-session-{id}-ttl-{minutes}.Configure your tool
Enter host gw.asiaproxies.com and port 7777 (HTTP) or 7778 (SOCKS5) in your tool.
Test the exit IP
Request https://ipinfo.io/json through the proxy. The country and city in the reply should match your settings.
How does the targeting syntax work?
The exit IP is controlled by the parts of the username; the template is USERNAME-country-{cc}-city-{city}-session-{id}-ttl-{minutes}. AsiaProxies checked the client area on 13 November 2026: its generator accepts sticky sessions from 1 to 30 minutes and builds each line from the same four parts shown below.
| Part | What it does | Example |
|---|---|---|
country-{cc} | Two-letter country code of the exit IP | country-jp, country-in, country-id |
city-{city} | City of the exit IP, as listed in your dashboard. Leave it out for any city. | city-tokyo, city-jakarta |
session-{id} | Any short string. The same ID keeps the same IP. | session-a1b2c3 |
ttl-{minutes} | Length of the sticky session in minutes: up to 30 minutes (the IP can change earlier) | ttl-10, ttl-30 |
Leave out the session and ttl parts for rotating mode: each new connection usually gets a new IP; for a new IP on every request, send one request per connection (turn off keep-alive). The dashboard can build the exact username for you.
Common codes in East Asia are jp Japan, kr South Korea, hk Hong Kong and tw Taiwan. In South-East Asia, use id Indonesia, vn Vietnam, ph Philippines, th Thailand, sg Singapore and my Malaysia. Use in for India and au for Australia. The locations page lists every country.
How do I use the proxies with cURL?
Use -x for the proxy address and -U for the username and password. For SOCKS5, use --socks5-hostname, so DNS lookups also happen in the target country.
# Username template: USERNAME-country-{cc}-city-{city}-session-{id}-ttl-{minutes}
# 1. Rotating Korean IP (new IP on each request)
curl -x "http://gw.asiaproxies.com:7777" \
-U "USERNAME-country-kr:PASSWORD" https://ipinfo.io/json
# 2. Sticky IP in Tokyo for 30 minutes
curl -x "http://gw.asiaproxies.com:7777" \
-U "USERNAME-country-jp-city-tokyo-session-a1b2c3-ttl-30:PASSWORD" \
https://ipinfo.io/json
# 3. Same over SOCKS5, with DNS resolved through the proxy
curl --socks5-hostname "gw.asiaproxies.com:7778" \
-U "USERNAME-country-jp-city-tokyo-session-a1b2c3-ttl-30:PASSWORD" \
https://ipinfo.io/jsonHow do I use the proxies with Python requests?
Pass a proxies dictionary to each request. The username template contains {cc}, {city}, {id} and {minutes} placeholders, so Python's str.format fills it directly. For SOCKS5, install requests[socks] and use the socks5h:// scheme.
import requests
HOST = "gw.asiaproxies.com"
HTTP_PORT = 7777
SOCKS_PORT = 7778
TEMPLATE = "USERNAME-country-{cc}-city-{city}-session-{id}-ttl-{minutes}"
PASSWORD = "PASSWORD"
user = TEMPLATE.format(cc="id", city="jakarta", id="job42", minutes=15)
http_proxy = f"http://{user}:{PASSWORD}@{HOST}:{HTTP_PORT}"
proxies = {"http": http_proxy, "https": http_proxy}
# SOCKS5 alternative (pip install "requests[socks]")
# socks = f"socks5h://{user}:{PASSWORD}@{HOST}:{SOCKS_PORT}"
# proxies = {"http": socks, "https": socks}
r = requests.get("https://ipinfo.io/json", proxies=proxies, timeout=30)
print(r.status_code, r.json().get("country"), r.json().get("city"))How do I use the proxies with Node.js?
In Node.js 18 and later, use the undici package and its ProxyAgent. Pass the agent as the dispatcher option of fetch.
// npm install undici
import { ProxyAgent, fetch } from 'undici';
const template = 'USERNAME-country-{cc}-city-{city}-session-{id}-ttl-{minutes}';
console.log('Username template:', template);
// Rotating IP in India: only the country part
const user = 'USERNAME-country-in';
const agent = new ProxyAgent(
`http://${user}:[email protected]:7777`
);
const res = await fetch('https://ipinfo.io/json', { dispatcher: agent });
console.log(await res.json());How do I use the proxies with Playwright?
Pass the proxy server, username and password in the proxy option of launch. Use a sticky session, so the whole browser session keeps one IP.
# pip install playwright && playwright install chromium
from playwright.sync_api import sync_playwright
TEMPLATE = "USERNAME-country-{cc}-city-{city}-session-{id}-ttl-{minutes}"
user = TEMPLATE.format(cc="sg", city="singapore", id="pw01", minutes=20)
with sync_playwright() as p:
browser = p.chromium.launch(proxy={
"server": "http://gw.asiaproxies.com:7777",
"username": user,
"password": "PASSWORD",
})
page = browser.new_page()
page.goto("https://ipinfo.io/json")
print(page.inner_text("body"))
browser.close()How do I use the proxies with Scrapy?
Scrapy's built-in HttpProxyMiddleware reads the proxy key in request.meta. Put the username and password in the proxy URL. Keep the request rate polite and follow each site's terms.
import scrapy
PROXY = "http://USERNAME-country-th:[email protected]:7777"
class PriceSpider(scrapy.Spider):
name = "prices"
custom_settings = {"DOWNLOAD_DELAY": 1.0, "CONCURRENT_REQUESTS": 8}
def start_requests(self):
yield scrapy.Request("https://ipinfo.io/json", meta={"proxy": PROXY})
def parse(self, response):
self.logger.info(response.text)How do I rotate the IP on a dedicated mobile port?
Call the rotation link of your port, wait for the modem to reconnect (usually 5–15 seconds), then send new requests. The link is https://asiaproxies.com/api/v1/mobile/{port}/rotate?key=API_KEY, and it accepts one rotation every 30 seconds at most. Replace {port} with your port number and API_KEY with the key from your dashboard. The host, port, username and password of each dedicated port are also in the dashboard. You can set an automatic rotation timer there instead, from every 2 minutes to every 24 hours. Read more on the mobile proxies page.
# 1. Check the current IP (HOST and PORT from your dashboard)
curl -x "http://USERNAME:PASSWORD@HOST:PORT" https://ipinfo.io/json
# 2. Ask the modem for a new IP (replace {port} and API_KEY)
curl "https://asiaproxies.com/api/v1/mobile/{port}/rotate?key=API_KEY"
# 3. Wait for the modem to reconnect, then check again
sleep 15
curl -x "http://USERNAME:PASSWORD@HOST:PORT" https://ipinfo.io/jsonWhy is my proxy not working?
Most problems come from the username, the balance or a blocked target. Check the table, then contact support if the problem stays. Email replies within 12 hours, 7 days a week.
| Symptom | Likely cause | Fix |
|---|---|---|
| Error 407 Proxy Authentication Required | Wrong username or password, or a typo in the targeting parts | Copy both again from the dashboard. Check the country code. |
| Error 407 after it worked before | Your GB balance is empty or your port has expired | Check the balance in the dashboard and buy a new pack. |
| The exit IP is in the wrong country | The country part is missing, or the tool ignores the username | Test with cURL first. Then copy the same username into your tool. |
| The IP changes during a session | No session ID, or the TTL has ended | Add session-{id} and a longer ttl-{minutes} value. |
| Connection refused or timeout | Wrong port, or a firewall blocks outgoing traffic | Use 7777 for HTTP and 7778 for SOCKS5. Allow these ports. |
| A bank or government site does not load | The target is blocked by policy | This is expected. These targets are blocked for every account. |
| Email sending fails | SMTP ports are blocked | This is expected. Use your email provider's own service. |
| The mobile IP does not change | The rotation call used the wrong port or API key | Check {port} and API_KEY, then wait a few seconds. |
Setup: FAQ
Does AsiaProxies use a different host for each country?
No. AsiaProxies uses one gateway, gw.asiaproxies.com, for every country; the country code in the username picks the exit, so only the username changes between markets.
Should I use HTTP or SOCKS5 with AsiaProxies?
Use HTTP on port 7777 for most scraping and browser tools. AsiaProxies also offers SOCKS5 on port 7778; use socks5h or --socks5-hostname so DNS lookups go through the proxy.
How do I check that AsiaProxies targeting works?
Request https://ipinfo.io/json through the AsiaProxies proxy and compare the country and city in the reply with those in the username. Run this once with cURL before configuring a larger tool.
How many requests can I send at once through AsiaProxies?
AsiaProxies residential plans are billed per GB, so parallel requests do not change the price. Keep the rate polite for each site; about one request a second is a sensible start for price checks.
Does AsiaProxies setup require KYC or an email?
No. AsiaProxies asks for no ID, selfie or documents, and email is optional; the login is an account number. The acceptable use policy applies to every account.
Verdict
- Use the HTTP port 7777 with username targeting for almost every tool: one host, one password, and the country, city and session in the username.
- Use SOCKS5 on port 7778 only when a tool needs non-HTTP traffic, and a dedicated mobile port with its rotation link when one carrier IP must be held longer than 30 minutes.
Ready to connect?
No KYC — no ID, no selfie, no documents. Pay in crypto. 1 GB costs $1.50, paid from a $25 top-up.