# HTTP &amp; SOCKS5 Proxy Setup

> For AI tools: this is the Markdown copy of https://xproxy.io/document/how-use-proxy-format-http-socks5. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

Find your HTTP/SOCKS5 ports, protect them with a password or IP whitelist, and export proxies in the format your tool needs.

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

**One port per modem**

Port `4001` always uses modem #1, `4002` modem #2, and so on.

**Two ways to log in**

A username and password, or an IP whitelist. Use one or both.

**Copy in your tool's format**

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:proxy123@192.168.1.10: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: Find your proxies**

Open **Proxy Management**. The **HTTP · SOCKS** tab shows the ports of every modem.

- **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** in step 5 and **Proxy Settings** in steps 2 to 4.

![Proxy Management with the proxy ports of the first modem, the Export Proxy and the Proxy Settings buttons marked (demo data)](https://media1.xproxy.io/docs/use-proxies/px-1-list-v2.webp)

> Each port belongs to one modem: port 4001 always exits through modem #1, port 4002 through modem #2.

**Step 2: One port or two?**

Open **Proxy Settings → General**. **Starting Port** sets the first number: `4000` means modem #1 is on `4001`.

**Auto Proxy (one port)**: **on** = HTTP and SOCKS5 share one port per modem. **Off** = SOCKS5 gets its own port, `5001` for modem #1.

![Proxy Settings, General tab: Starting Port and Auto Proxy (one port) marked (demo data)](https://media1.xproxy.io/docs/use-proxies/px-2-general-v1.webp)

> New installs have Auto Proxy on. Changing it restarts the XProxy app for a few seconds.

**Step 3: Choose how people connect**

Open **Proxy Settings → Address**. The **Source** you pick is the address shown, copied and exported for every proxy:

- **Public IP**: you forwarded the ports on your router ([NAT Forwarding](https://xproxy.io/document/how-public-access-xproxy)).
- **DDNS**: a [DDNS name](https://xproxy.io/document/dynamic-dns-setup) that follows your public IP.
- **VPS relay**: you use [VPS Forwarding](https://xproxy.io/document/vps-forwarding-to-use-difference-place). Works behind CGNAT.
- **Custom**: your own domain or IP. Type it in **Domain or IP**.

![Proxy Settings, Address tab: Source and Domain or IP marked (demo data)](https://media1.xproxy.io/docs/use-proxies/px-3-address-v1.webp)

> Until you set an address, the list shows the box's local address. It is the fastest for a tool on the same network, but it does not work from outside. With VPS relay the port can differ if you set a port offset: always copy the port the panel shows.

**Step 4: Protect your proxies**

Open **Proxy Settings → Login**. Use one method, or both:

- **Password.** Turn on **Enable proxy authentication**, then set a **Username** and **Password**. The same login works on every port.
- **IP whitelist** (Basic plan or higher). Turn on **Enable IP authentication** and list the public IPs or subnets that may connect, for example `125.12.15.11` or `82.32.17.0/24`. No password is needed in the tool.

Selling proxies? Also turn on **Force authentication in LAN connections**.

![Proxy Settings, Login tab: Enable proxy authentication, Username and Password, Enable IP authentication and the IP list marked (demo data)](https://media1.xproxy.io/docs/use-proxies/px-4-login-v1.webp)

> Never publish a proxy to the internet (VPS or router) without a password or a whitelist. Open proxies get found and abused within hours.

**Step 5: Copy or export**

**Click any proxy** in the table to copy it in your chosen format. To choose it, or to copy all proxies, click **Export Proxy**:

1. Pick a **Preset** for your tool. **Protocol** and **Credentials** follow it.
2. Pick the **Address** to put in each line.
3. Check the **Preview**.
4. Click **Copy All**, or **.txt** to download.

![Export Proxies window: Preset, Address, Preview and Copy All marked (demo data)](https://media1.xproxy.io/docs/use-proxies/px-5-export-v1.webp)

> Tool not in the list? Choose **Custom** and set Protocol and Credentials yourself. Your choice is remembered.

## 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:proxy123@51.79.12.34: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:proxy123@51.79.12.34: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

**Terminal (curl)**

```bash
# 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.org
```

Both commands should print the mobile IP of modem #1, not your own IP. With Auto Proxy off, SOCKS5 is on port 5001.

**Python**

```python
import requests  # SOCKS5 needs: pip install "requests[socks]"

proxy = "http://demo:proxy123@192.168.1.10:4001"
# proxy = "socks5h://demo:proxy123@192.168.1.10:4001"

r = requests.get("https://api.ipify.org",
                 proxies={"http": proxy, "https": proxy}, timeout=20)
print(r.text)
```

More code (rotation, retries, Scrapy, Playwright) is in the integration guides.

**Browser (FoxyProxy)**

1. Install **FoxyProxy** for Chrome or Firefox from the browser's extension store. Click its icon, then **Options**.
2. Open **Proxies** and click **Add**. Fill in: a **Title**, **Type** HTTP (in Chrome always HTTP: Chrome cannot send a username and password to a SOCKS5 proxy), the **Hostname** and port `4001`, your **Username** and **Password**. Click **Save**.
3. Click the FoxyProxy icon and pick your proxy.
4. The icon now shows the proxy. Open `https://api.ipify.org`: it shows the modem's mobile IP, not your own.

**Windows apps (Proxifier)**

1. Open **Profile → Proxy Servers → Add**.
2. Enter the host and port 4001, choose **SOCKS Version 5** (or HTTPS for HTTP proxies).
3. Tick **Authentication** and enter the username and password, then **Check** and **OK**.
4. Add a **Proxification Rule** for the app you want to route. Apps not in the rule keep using your normal internet.

Using an anti-detect browser? Follow its own guide: [AdsPower](https://xproxy.io/document/integrating-adspower-with-xproxy), [GoLogin](https://xproxy.io/document/integrating-gologin-with-xproxy), [Multilogin](https://xproxy.io/document/integrating-multilogin-with-xproxy), [Dolphin{anty}](https://xproxy.io/document/integrating-dolphin-anty-with-xproxy).

## 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](https://xproxy.io/document/how-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](https://xproxy.io/document/socks5-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](https://xproxy.io/document/make-vpn-mobile-proxy). |

## 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.

[Change the IP →](https://xproxy.io/document/how-change-rotate-ip) [Proxy protocols →](https://xproxy.io/document/proxy-protocols-overview)

---

Source: https://xproxy.io/document/how-use-proxy-format-http-socks5
