Setup guides
Connect TopProxy to the tools you already use
17 written guides for code libraries, desktop browsers, antidetect browsers and phones. Every one uses the same gateway and the same login format, so once you understand one, the rest read quickly.
Which five values does every proxy setup need?
Whatever the tool, a proxy connection comes down to these fields. Copy them once and keep them at hand.
| Field | Value | Notes |
|---|---|---|
| Gateway host | proxy.topproxy.shop | One host for every product and every country. |
| HTTP and HTTPS port | 8080 | Plain HTTP to the gateway. HTTPS sites are tunnelled with CONNECT and stay encrypted. |
| SOCKS5 port | 1080 | For tools that speak SOCKS5 with a login. Use remote DNS (socks5h) where the tool allows it. |
| Login | tp7k2m9_country-us | Your account name plus settings. Shown in your account after the first top-up. |
| Password | YOUR_PASSWORD | Your proxy password. The same for every login you build. |
How is a TopProxy login string built?
Location and session choices are written into the login itself, joined with underscores. That is why no tool needs a special plugin: if it has a username field, it can pick a country.
Example login: tp7k2m9_country-us_city-new-york_session-a1b2c3_life-30
| Part | Example | Rule |
|---|---|---|
| Account | tp7k2m9 | Required and always first. It is your own account name, not something you choose per request. |
| Country | _country-us | Required. A lowercase two-letter code. 64 countries are available. |
| City | _city-new-york | Optional. The city name in lowercase with hyphens for spaces. 172 cities across all countries. |
| Session | _session-a1b2c3 | Optional. Any letters and digits. Leave it out for a new exit per connection, keep it to hold one exit. |
| Life | _life-30 | Minutes the session holds its exit. Residential 1 to 120 minutes, mobile 1 to 60 minutes, long session ISP up to 720. |
Find every country code and city value on the proxy locations pages.
Which tool do you want to connect to a proxy?
Code and command line
Libraries, languages and the command line. Each guide has copy-ready code with the gateway and login already filled in.
- cURLOne terminal command to prove your login works, then SOCKS5 with remote DNS and a reusable config file.Open guide
- Python RequestsA proxies dictionary, a Session with retries, SOCKS5 through PySocks and a pool of sticky logins.Open guide
- Scrapyrequest.meta proxy per request, a small middleware for rotation and sticky crawls, and throttling that fits a gateway.Open guide
- PlaywrightProxy server, username and password at launch or per context, in Node.js and Python, with one location per context.Open guide
- PuppeteerThe --proxy-server switch plus page.authenticate, one browser per location, and a clean way to switch sessions.Open guide
- SeleniumChrome cannot take a proxy password from a flag. Two working routes: a small auth extension, or Selenium Wire.Open guide
- Node.jsfetch with an undici ProxyAgent, axios with https-proxy-agent, and SOCKS5 through socks-proxy-agent.Open guide
- PHPThe cURL extension with CURLOPT_PROXY and CURLOPT_PROXYUSERPWD, SOCKS5 hostname mode, and Guzzle.Open guide
- Gohttp.Transport with http.ProxyURL and url.UserPassword, SOCKS5 through the same field, and goroutine-safe clients.Open guide
- Javajava.net.http.HttpClient with a ProxySelector and an Authenticator, the Basic tunnelling switch, and OkHttp.Open guide
Desktop browsers
Desktop browsers for manual checks and everyday proxied browsing in a separate profile.
Antidetect browsers
Profile-based browsers where every profile needs its own address that does not move.
- AdsPowerOne proxy per profile, sticky logins named after each profile, and bulk import when you build many profiles at once.Open guide
- GoLoginProxy fields in a GoLogin profile, keeping timezone and language in line with the exit, and local or cloud launches.Open guide
- MultiloginLong-lived profiles for teams: fixed IPs or long sticky logins, a naming plan per teammate, and proxy fields explained.Open guide
Phones
Phone and tablet settings, with clear notes on what the built-in proxy covers and what it leaves out.
Which port should each tool use, HTTP or SOCKS5?
Which port works with a login in each tool. When in doubt, the HTTP port 8080 is the safe choice.
| Tool | HTTP 8080 | SOCKS5 1080 with login |
|---|---|---|
| cURL | Yes | Yes |
| Python Requests | Yes | Yes |
| Scrapy | Yes | No |
| Playwright | Yes | No |
| Puppeteer | Yes | No |
| Selenium | Yes | No |
| Node.js | Yes | Yes |
| PHP | Yes | Yes |
| Go | Yes | Yes |
| Java | Yes | Older APIs only |
| Google Chrome | Yes | No |
| Firefox | Yes | No |
| AdsPower | Yes | Yes |
| GoLogin | Yes | Yes |
| Multilogin | Yes | Yes |
| iPhone and iPad | Yes | No |
| Android | Browser and emulator | Through a client app |
What do people ask before their first proxy setup?
- Which guide should I start with?
- Start with cURL even if you plan to use something else. One command confirms that the login, password and network all work, so any later problem is clearly in the tool settings.
- Do I need a different login for each tool?
- No. The same login and password work in every tool. Build a different login only when you want a different country, city or session.
- Why do browsers use the HTTP port only?
- Chrome, Firefox and Safari cannot send a username and password to a SOCKS5 proxy. The HTTP port 8080 handles both http and https sites, so it covers everything a browser needs.
- Where do I find my login and password?
- In your account, after your first top-up of $40 or more has been credited. The connection page there shows the gateway, both ports, your account name and your password.
Working with the data APIs instead of the gateway? Read the API docs.
Get a login and try the first guide
Create an account, top up from $40 in crypto, and copy your connection values from the account area.