HTTP & SOCKS5 Proxy Setup
Ask AI
Ready taskDo it with me, step by step
Chat assistants
Open in ChatGPTNew tabOpen in ClaudeNew tabCoding agents
Claude CodeOpens the desktop appCodexOpens the desktop appCursorOpens the app from the webCopy
View as MarkdownPlain text for AI toolsSee the prompt
Read https://xproxy.io/document/how-use-proxy-format-http-socks5.md, the XProxy guide "HTTP & SOCKS5 Proxy Setup". If you cannot open links, download them with curl. Then take me through it one step at a time: tell me exactly what to click or type, wait until I say it is done, and help me when what I see is different from the guide. Start by asking what I have (hardware, XProxy version, what I see now). Other XProxy guides, each with a Markdown copy at its URL + .md, are listed in https://xproxy.io/llms.txt.
The app opens with the prompt filled in. Nothing runs until you press Enter.
HTTP and SOCKS5 are the quickest way to use your modems. Every browser, anti-detect profile, bot and scraper has a proxy field for them.
You need: XProxy running with at least one modem online in Proxy Management.
In short
Port 4001 always uses modem #1, 4002 modem #2, and so on.
A username and password, or an IP whitelist. Use one or both.
Export Proxy writes the lines for GoLogin, AdsPower, Multilogin, Proxifier and code.
At a glance
| What | Value for modem #1 |
|---|---|
| HTTP port | 4001 |
| SOCKS5 port | 4001 with Auto Proxy (one port) on · 5001 with it off |
| IPv6 port (SIM with IPv6 only) | 6001 (SOCKS5 7001 with Auto Proxy off) |
| Login | Username and password, IP whitelist, or both |
| Typical format | 192.168.1.10:4001:demo:proxy123 or socks5://demo:[email protected]:4001 |
These ports assume the default Starting Port, 4000. In Proxy Management the panel always shows the real ports.
Set up your proxies
Step 1 of 5
Open Proxy Management. The HTTP · SOCKS tab shows the ports of every modem 1.
- PROXY v4: one port for both HTTP and SOCKS5.
- HTTP v4 and SOCKS v4: two ports (when Auto Proxy is off, see step 2).
- v6 lines: IPv6 ports. They show only when the SIM gets an IPv6 address.
You will use Export Proxy 2 in step 5 and Proxy Settings 3 in steps 2 to 4.
Which preset for which tool?
| Preset | Example line | Paste into |
|---|---|---|
| GoLogin / AdsPower · HTTP · host:port:user:pass | 51.79.12.34:4001:demo:proxy123 | GoLogin, AdsPower, Dolphin{anty}, most anti-detect browsers |
| Multilogin / VMLogin · SOCKS5 · host:port:user:pass | 51.79.12.34:4001:demo:proxy123 | Multilogin, VMLogin (select SOCKS5) |
| Shadowrocket / Surge · socks5://user:pass@host:port | socks5://demo:[email protected]:4001 | Shadowrocket, Surge, code and CLI tools |
| Proxifier / ProxyCap · SOCKS5 · host:port, no login | 51.79.12.34:4001 | Proxifier, ProxyCap (with an IP whitelist) |
| Plain HTTP or Plain SOCKS5 · user:pass@host:port, or host:port@user:pass | demo:[email protected]:4001 | Scrapers, bots, any tool that asks for a URL |
More in the same window: Only active skips modems that are down. Scheme prefix starts each line with http:// or socks5://. For SOCKS5 you can pick socks5h://, which looks up website names on the proxy. Rotation link → Add to every line adds the change-IP link to each line.
Use the proxy in your tool
# HTTP
curl -x http://demo:proxy123@192.168.1.10:4001 https://api.ipify.org
# SOCKS5: "socks5h" lets the proxy look up website names (no DNS leak)
curl -x socks5h://demo:proxy123@192.168.1.10:4001 https://api.ipify.orgBoth commands should print the mobile IP of modem #1, not your own IP. With Auto Proxy off, SOCKS5 is on port 5001.
Using an anti-detect browser? Follow its own guide: AdsPower, GoLogin, Multilogin, Dolphin{anty}.
Change the IP
Each proxy has its own rotation link. Click LINK in the Rotation column. Opening the link makes that modem reconnect and get a new mobile IP:
curl "http://192.168.1.10/reset?proxy=p:4001"Timers, status checks and the API are in How to change / rotate IP.
HTTP or SOCKS5?
| HTTP | SOCKS5 | |
|---|---|---|
| Supported by | Almost every tool | Most tools, all anti-detect browsers |
| Traffic | Web traffic (HTTP/HTTPS) | Any TCP connection (mail, games, custom apps) |
| DNS | Looked up by the proxy | Looked up by the proxy with socks5h:// (recommended) |
| UDP (WebRTC, QUIC, games) | No | Yes, for apps that ask for it (UDP ASSOCIATE). Browsers send TCP only. |
Troubleshooting
| Symptom | Fix |
|---|---|
407 Proxy Authentication Required, or on HTTPS sites the connection just closes | The username or password is wrong or missing. SOCKS5 tools show an authentication error. Copy the proxy again after saving the Login settings. |
| Works at home, times out from outside | You copied the local address. In Proxy Settings → Address set the source to VPS relay, Public IP, DDNS or Custom, and make sure those ports are forwarded. |
| Connection refused on port 5001 | Auto Proxy is on, so SOCKS5 is on 4001. Use the port shown in the table. |
| Whitelisted, but access is denied | Your public IP changed. Check it at api.ipify.org and update the whitelist. |
| A website still sees your own IP or location | The app is not using the proxy for everything (WebRTC, DNS). Use socks5h://, an anti-detect browser, or switch to VPN mode. |
FAQ
Can HTTP and SOCKS5 really share one port?
Yes. With Auto Proxy on, XProxy detects the protocol of each connection, so 4001 answers both. A tool that asks you to pick a type works with either choice.
Can several people use the same port at once?
Yes, but they share the same modem and the same IP, and a rotation changes the IP for all of them. Give each customer their own port when they need their own IP.
When do I get IPv6 proxies?
When your plan includes IPv6, IPv6 Proxy is on in Proxy Settings → General, and the SIM and carrier give the modem an IPv6 address. Otherwise only IPv4 ports show.
What next?
Change the IP on a timer, or pick another protocol for a phone or a whole device.

