Link copied to clipboard!
ProductsPricingUse CasesSolutionsResourcesCompanyFAQ
Get Started
Home Blog How to Use Mobile Proxies
Guides

How to Use Mobile Proxies: A Step-by-Step Guide

A step-by-step tutorial: get your connection details, set up a browser, a command-line tool or a script, test the proxy and fix the usual problems.

This guide shows how to connect a tool or browser to a mobile proxy, keep or change your IP and check that everything works.

Every step has a command or a setting you can copy. The last sections cover the problems that new users meet most often.

Key takeaways
  • You need five details: host, port, username, password and protocol (HTTP(S) or SOCKS5).
  • Test with one curl command first. If it works, any other tool can use the same details.
  • Use the HTTP(S) endpoint in browsers: Chrome and Edge cannot sign in to SOCKS5 proxies.
  • Your IP stays the same while you work. Check it with the IP checker before you start work.
  • Keep the login and password private: anyone who has them can use your proxy.

1.What you need

From your account you need five details: the proxy host, the port, a username and password, and the protocol, HTTP(S) or SOCKS5. Written together they look like this:

host:port:username:password

Your connection details are provided once your order is confirmed. Checkout opens with the launch. Different tools want the same details in different shapes:

FormatLooks likeOften used by
Colon-separatedhost:port:username:passwordBulk import and proxy lists
Credentials firstusername:password@host:portScrapers that read one proxy per line
HTTP URLhttp://username:password@host:portcurl, libraries and environment variables
SOCKS5 URLsocks5://username:password@host:portTools that take a SOCKS5 URL
Separate fieldsHost, port, username and passwordBrowsers and desktop apps

The proxy format converter turns one format into another in your browser. If your password contains characters such as @, :, / or #, percent-encode them inside URLs (@ becomes %40), or enter the credentials in separate fields.

2.Choose a protocol

Both protocols work with the same login and password. Pick the one your tool supports best:

  • HTTP(S) suits browsers, curl, HTTP libraries and most scrapers. Chrome and Edge cannot sign in to SOCKS5 proxies with a username and password, so use HTTP(S) there.
  • SOCKS5 suits tools that talk to servers other than websites, or that only offer a SOCKS setting. Use the socks5h scheme where a URL is needed, so that the proxy resolves website names.

3.Test the connection with curl

Before you touch a browser or a script, test the details with one command. If it works, any other tool will work with the same details.

curl -x http://USERNAME:PASSWORD@HOST:PORT https://xameleon.cloud/api/tools/ip

The reply shows the IP address and the country our server sees, for example {"ip":"203.0.113.25","country":"UA"}. For SOCKS5, change the scheme and keep the h:

curl -x socks5h://USERNAME:PASSWORD@HOST:PORT https://xameleon.cloud/api/tools/ip

When the password has special characters, pass the credentials separately and skip the encoding:

curl -x http://HOST:PORT --proxy-user 'USERNAME:PASSWORD' https://xameleon.cloud/api/tools/ip

Add -v to see the whole exchange. A 407 from the proxy means that the username or the password was rejected.

4.Connect a proxy to your browser or tool

Most browsers, scrapers and automation tools have a proxy section in their settings. Enter the host and port, choose the protocol and add your credentials. If your tool takes a single URL, combine the details like this:

http://USERNAME:PASSWORD@HOST:PORT

Firefox

  1. Open Settings, then General, and scroll down to Network Settings. Click Settings.
  2. Choose Manual proxy configuration.
  3. Enter the host in HTTP Proxy and the port in Port, and tick Also use this proxy for HTTPS.
  4. Click OK, open any page and enter the username and password when Firefox asks for them.

Chrome and Edge

Chrome and Edge follow the proxy settings of your operating system, which also affect your other programs. For a clean setup, start a separate browser profile from a terminal with a proxy flag. Use the HTTP(S) endpoint:

# Linux
google-chrome --proxy-server="http://HOST:PORT" --user-data-dir=/tmp/proxy-profile

# macOS
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --proxy-server="http://HOST:PORT" --user-data-dir=/tmp/proxy-profile

# Windows (Command Prompt)
"C:\Program Files\Google\Chrome\Application\chrome.exe" --proxy-server="http://HOST:PORT" --user-data-dir="%TEMP%\proxy-profile"

The browser asks for the username and password on the first request. Closing that window ends the proxy use: your normal browser stays untouched.

Command-line tools

Many command-line tools and libraries, among them curl, pip and npm, read proxy settings from environment variables. Some read only the lowercase names, so set both when in doubt:

# Linux and macOS
export HTTPS_PROXY="http://USERNAME:PASSWORD@HOST:PORT"
export https_proxy="$HTTPS_PROXY"

# Windows PowerShell
$env:HTTPS_PROXY = "http://USERNAME:PASSWORD@HOST:PORT"

The variables stay set for the whole terminal session. Unset them when you finish (unset HTTPS_PROXY https_proxy), so that later commands do not go through the proxy by accident.

Node.js

The undici package, which powers fetch in Node.js, has a proxy agent. Percent-encode special characters in the password:

// npm install undici
import { fetch, ProxyAgent } from "undici";

const agent = new ProxyAgent("http://USERNAME:PASSWORD@HOST:PORT");

const res = await fetch("https://xameleon.cloud/api/tools/ip", { dispatcher: agent });
console.log(await res.json());

Python has its own guide: see Python proxies. Browser automation tools such as Playwright take the same details in a proxy option when you launch the browser.

Want to see how this works for your project?
Tell us about your use case and we will suggest a setup.
View Pricing

5.Keep or change your IP

Your IP stays the same while you work, which suits logins and multi-step workflows. After a pause of about 10 minutes without connections, the next connection can get a different IP. When you want a fresh IP, change it on demand from your account: on Shared proxies you are moved to another modem in the same country, and on Exclusive proxies your own modem rotates.

After a change, check the new address before you continue, because open connections can drop for a moment. How to rotate proxies has a helper for this and shows how to spread work across several proxies.

6.Test your proxy connection

Open a page that shows your IP address, for example our IP checker, and confirm that the address is the proxy’s. Then run a few real requests and watch for errors.

Open the IP checker

A short routine for a new proxy:

  1. Check the IP. Use the IP checker or the curl command. The address must differ from your own, and the country must match your plan.
  2. Measure the response. The latency test shows how long a round trip to our API takes from your browser.
  3. Load a real page. Open the page you will work with and check that it loads and shows the content you expect for that country.
  4. Run a small batch. Send ten or twenty requests at a slow pace and look at the status codes and errors.
  5. Write down the setup. Note the protocol and the settings that worked, so that you can repeat them.

7.Troubleshooting your mobile proxy connection

If the proxy does not connect, check the host, port, credentials and protocol, and make sure your plan and location are active. If a website limits your requests, slow down and review its terms of use.

What you seeLikely causeWhat to do
Chrome shows ERR_PROXY_CONNECTION_FAILED, Firefox says the proxy server is refusing connectionsA wrong host or port, or the wrong protocolCompare host, port and protocol with your account, and use HTTP(S) in browsers.
Chrome shows ERR_TUNNEL_CONNECTION_FAILEDThe proxy refused to open the tunnel, often because of wrong credentialsRun the same details through curl -v and read the status the proxy returns.
The browser keeps asking for a username and passwordThe username or the password is wrongCopy them from your account again, without spaces at the ends.
Firefox says it cannot find the proxy serverThe host name is misspelledCheck the host name character by character.
The IP checker shows your own addressThe browser or tool does not use the proxyCheck the proxy setting, or that you opened the profile you started with the flag.
The site shows another country than you expectA different plan or location is activeCheck the country of the proxy in your account.
Pages load slowly or time outCellular speed varies, or too many requests run at onceLower the concurrency, set timeouts and retry transient errors.
Every HTTPS site shows a certificate warningA proxy that only tunnels HTTPS does not change certificatesCheck your system clock and the security software on your device.

If it still does not work, write to [email protected] with the exact error, the tool you use and the time it happened. Never send your password.

8.Use your proxy safely

  • Keep the credentials private. Access is by login and password only, so anyone who has them can use your proxy. Do not post them in chats, screenshots or public code.
  • Prefer HTTPS sites. The proxy does not encrypt traffic by itself, and plain HTTP can be read along the way.
  • Switch the proxy off when you are done. Unset environment variables and close the proxy profile.
  • Use it lawfully. Follow the law, the sites’ terms and our acceptable use policy. See secure and responsible proxy use.

9.FAQs

Do I need to install software?

No. A mobile proxy works through the proxy settings of your browser, tool or script.

Which protocol should I use in a browser?

HTTP(S). Chrome and Edge cannot sign in to SOCKS5 proxies with a username and password.

How do I run several connections at once?

Order more than one proxy. Each proxy has its own connection details in your account, so you can use them side by side.

Can I use the proxy for one site or one app only?

Yes. Use a separate browser profile, or an application with its own proxy setting. System-wide proxy settings apply to every program.

How do I check which IP I am using?

Open the IP checker in the browser that uses the proxy, or run the curl command from this guide.

Still have questions about mobile proxies? Visit our FAQ page for detailed answers, or contact our support team — we're here to help.

How to use mobile proxies: key takeaways and next steps

Knowing how to use mobile proxies well comes down to three habits. Keep your five connection details together and private, keep or change your IP to suit the job, and test before you scale up. The rest of a mobile proxy setup is routine.

How do you test a proxy connection?

Start with our free proxy tools. Open the IP checker in a browser or tool that uses your proxy and confirm that the address and country are the proxy’s. Then send a few real requests to your target, read the status codes and only then raise the volume. Keep the request rate modest and stay within each site’s terms.

What should you read after your first connection works?

Choose the next guide by what you are building. If you write code, read the Python proxies guide. If you want to switch between several proxies in code, see how to rotate proxies automatically. For a ready use case, look at web scraping proxies or SERP tracking proxies, then compare plans on the mobile proxy pricing page.