# Installing Mobile Phones &amp; 5G Proxies (NextGen)

> For AI tools: this is the Markdown copy of https://xproxy.io/document/installing-android-xproxy-nextgen. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

Turn Android phones into mobile proxies with XProxy NextGen: USB Forwarding, LAN, USB Tethering or Remote VPS.

Turn Android phones into rotating 4G/5G mobile proxies. Each phone is one proxy, and the XProxy box gives you its ports.

**You need:** a phone with **Android 8.0 or newer** (no root) with a SIM that has mobile data, a USB data cable, and your XProxy box running. A powered USB hub helps if you have more phones than USB ports.

## Pick a connection mode

The mode is how the phone talks to the box. Start with **USB Forwarding**. It is the easiest, and it is the one the panel recommends.

| Mode | How it works | Choose it when |
| --- | --- | --- |
| USB Forwarding | The phone stays plugged into the box. The box controls it through USB debugging. | You are starting out, or you have a small or medium setup. |
| LAN (Wi-Fi / Ethernet) | The phone joins your router by Wi-Fi or Ethernet. USB is only needed for the first setup. | You have many phones, or a good router or access point. |
| USB Tethering | The phone shares its mobile data with the box over the USB cable. USB debugging still controls the phone. | Your Wi-Fi is unstable. |
| Remote VPS | The phones connect over the internet to an XProxy installed on a VPS. No USB cable, and no box where the phone is. | The phones are in different places. It is set up differently: [ask us on Telegram](https://t.me/xproxyio). |

![The Connection mode list in Android Settings with USB Forwarding, LAN, USB Tethering and Remote VPS](https://media1.xproxy.io/docs/android/ng-modes.webp)

Change the mode in **Android Settings**. The panel restarts after you click SAVE. Remote VPS is system-wide: when it is on, every phone connects over the internet and USB or LAN phones are not used.

## Set up a phone

**Step 1: Check NextGen in the panel**

Open your dashboard. Go to **Device Settings**, then **Android Devices**, and click **Android Settings**.

1. On the **General** tab, check that **NextGen Enable** is on.
2. Pick a **Connection mode**. **USB Forwarding** is recommended.
3. If you changed something, click **SAVE**. The panel restarts to apply it.

![Android Settings in the XProxy panel, General tab, with NextGen Enable, Connection mode and SAVE marked](https://media1.xproxy.io/docs/android/ng-settings.webp)

> Not sure which mode? See the table above. You can change it later. Can't open the panel? See [how to open your dashboard](https://xproxy.io/document/how-access-dashboard-xproxy).

**Step 2: Open Developer options on the phone**

Do this on the phone.

1. Open **Settings**, then **About phone** (some phones call it **My phone**).
2. Tap **Build number** 7 times. The phone says that you are now a developer.
3. Go back and open **Developer options**. On some phones it is inside **System**.

![Three Android settings screens: My phone, Build number, and Developer options in the System menu](https://media1.xproxy.io/docs/android/ng-dev.webp)

> Menu names change a little between phone brands. Type **Build number** in the Settings search box to find it.

**Step 3: Turn on USB debugging**

Still on the phone.

1. Open **Developer options**.
2. Switch on **USB debugging**.
3. The phone asks **Allow USB debugging?** Tap **OK**.

The XProxy box uses USB debugging to control the phone. It is needed for USB Forwarding and USB Tethering, and for the first setup in LAN mode.

![Android Developer options with USB debugging switched on and the Allow USB debugging question with OK](https://media1.xproxy.io/docs/android/ng-debug.webp)

**Step 4: OPPO, Realme or Xiaomi: one more switch**

**Other phone brand? Skip this step.** These three brands hide one more switch in **Developer options**:

1. **OPPO:** turn on **Disable permission monitoring**.
2. **Realme:** turn on **USB debugging**, **Install via USB** and **USB debugging (Security settings)**.
3. **Xiaomi:** turn off **Turn on MIUI optimisation**.

![OPPO Developer options with Disable permission monitoring switched on](https://media1.xproxy.io/docs/android/ng-oem-oppo.webp)

**Step 5: Plug the phone into the box**

Plug the phone into the XProxy box, or into a powered USB hub that is connected to the box, with a **USB data cable**.

The phone asks **Allow USB debugging?** Tick **Always allow from this computer** and tap **OK**.

The XProxy app installs on the phone by itself. You find it in the phone's app list.

**LAN mode:** also join the phone to your Wi-Fi, or to Ethernet with a LAN-OTG cable. USB is only needed for this first setup. If the panel says **Turn on Wi-Fi or Ethernet**, the phone has no network yet.

![Allow USB debugging question on an Android phone with Always allow from this computer ticked and the OK button](https://media1.xproxy.io/docs/android/ng-allow-v2.webp)

> Use a **data cable**, not a charge-only cable. The cable that came with the phone is the safest choice.

**Step 6: Check the phone in the panel**

Go back to **Android Devices** in the panel. Your phone appears in the list. Look at its row:

- **Status:** **ADB OK** means the cable and USB debugging work. **App OK** shows under it once the XProxy app runs and reports to the box. Until then it says **Waiting app…**.
- **Connection:** the **Mode** of the phone, the box **Interface** it uses, and the phone's **API** address.
- **Carrier:** the mobile network and signal bars. **Not ready** means the phone has no mobile data: turn it on and check the SIM.
- **Settings:** three switches you can click: **Admin**, **Install** and **Process**. Leave them as they are for now.
- **Actions:** restart, update or reboot the phone from here (see below).

![Android Devices list with the Status (ADB OK) and Connection mode of a phone marked](https://media1.xproxy.io/docs/android/ng-list-a-v2.webp)

> The phone is not in the list? See [Something not working?](#troubleshooting) at the bottom of this page.

**Your phone is connected**

Next, finish the setup in the XProxy app on the phone (below). Then [find your proxy ports](https://xproxy.io/document/how-use-proxy-format-http-socks5).

## Finish the setup in the phone app

Open the **X-Proxy** app on the phone, go to the **Settings** tab and open **Setup**. The list shows what the app still needs. Tap **Fix** or **Allow** on each item that is not done. **Required** items come first.

| Item | Why the app needs it |
| --- | --- |
| **Default assistant** (required) | Lets the app change your IP by switching airplane mode. Choose X-Proxy as the phone's digital assistant. |
| Location | Reads the name of the Wi-Fi network. |
| Phone status | Shows the carrier, signal strength and network type. |
| Text messages and Phone calls | Lets your panel send and read SMS and run USSD codes through the phone. |
| Notifications | Shows the status notification that keeps the app running. |
| Unrestricted battery and Start after restart | Stops Android from putting the app to sleep, and lets it start again after a restart. Some phones hide this under an **Auto launch** setting. |
| Full control (optional) | Lets the app restart the phone to recover by itself. See below. |

## Manage a phone from the panel

Click **Actions** on a phone's row to run one of these:

![The Actions menu of a phone in Android Devices with Restart App, Enable full control and View Sticky IP Logs marked](https://media1.xproxy.io/docs/android/ng-actions.webp)

| Action | What it does |
| --- | --- |
| **Restart App** | Restarts the XProxy app on the phone. |
| Reinstall App, Update Software | Reinstalls or updates the app through USB. Needs **ADB OK**. |
| Uninstall App | Removes the app. Turn **Install** off in the Settings column first. |
| **Reboot Device** | Restarts the phone. |
| **Enable full control** | See the note below. |
| View Sticky IP Logs | Shows the sticky IP log of the phone. |
| Turn Wi-Fi On / Off | Switches the phone's Wi-Fi through USB. |

The **Settings** column has three switches: **Install** lets the box install and update the app on the phone by itself. **Process** off makes the box leave the phone alone (no proxies, no checks) until you turn it back on. **Admin** lets the app lock and restart the phone (needs USB).

**Full control (optional).** With full control the phone can restart itself when it gets stuck. Keep the phone plugged in (ADB OK), sign out of every account on it (**Settings, Users &amp; accounts**: Android only allows full control when there are none), then choose **Enable full control** in Actions.

## How the phone gets a new IP

In **Android Settings**, open the **Rotation** tab and pick the **Method**.

![The Rotation tab in Android Settings with the method list: Voice Command, ADB Command, Rooted Command](https://media1.xproxy.io/docs/android/ng-rotation.webp)

| Method | Works on |
| --- | --- |
| **Voice Command** | All phones, no USB needed. |
| **ADB Command** | Some phones only. Needs USB. |
| **Rooted Command** | Rooted phones. Needs USB. |

More ways to rotate (button, timer, API): [How to change or rotate the IP](https://xproxy.io/document/how-change-rotate-ip).

## IPv6 (optional)

If your SIM and carrier support IPv6, XProxy adds IPv6 ports next to the IPv4 ones. No IPv6 ports? Allow IPv6 in the phone's APN:

**Step 1: Open Access Point Names**

Open **Settings** on the phone, then **Network**, your SIM, and **Access Point Names**.

![Android SIM settings with Access Point Names marked](https://media1.xproxy.io/docs/android/ng-ipv6-1.webp)

**Step 2: Open your APN**

Tap the APN your SIM uses. It is the one with the round mark.

![The list of APNs with the active one marked](https://media1.xproxy.io/docs/android/ng-ipv6-2.webp)

**Step 3: Allow IPv6**

Set both **APN protocol** and **APN roaming protocol** to **IPv4/IPv6**.

![Edit access point with APN protocol and APN roaming protocol set to IPv4/IPv6](https://media1.xproxy.io/docs/android/ng-ipv6-3.webp)

**Step 4: Save**

Tap the **⋮** menu at the top right, then **Save**.

![Edit access point menu with Save marked](https://media1.xproxy.io/docs/android/ng-ipv6-4.webp)

**Step 5: Test it**

Turn Wi-Fi off, so the test uses mobile data. Open **ipv6-test.com** in a browser on the phone. **IPv6** must say **Supported**. Your IPv6 ports then appear next to the IPv4 ones in the panel.

![ipv6-test.com result with IPv6 connectivity Supported](https://media1.xproxy.io/docs/android/ng-ipv6-5.webp)

> Still no IPv6? Your SIM or carrier may not support it.

## Something not working?

| What you see | What to do |
| --- | --- |
| The phone is not in the list | Open the XProxy app on the phone once. Check **USB debugging** is on and tap **Always allow** when asked. Unplug the cable and plug it in again. Try another cable: it must be a data cable. |
| Status says **Unauthorized** or **Offline** | Allow USB debugging on the phone, or plug the cable in again. |
| Status says **Waiting app…**, or **Auto install is off** | Wait a minute for the app to install. If **Auto install is off** shows, turn **Install** on in the Settings column. |
| App is **Not installed** or **Not ready** | Check the app on the phone, and its Wi-Fi in LAN mode: the app cannot reach the box. Use **Reinstall App** in Actions. |
| Carrier says **Not ready**, or the row says **Mobile data off** | Turn mobile data on, and check that the SIM has data. |
| LAN mode is unstable | Use a stronger router or access point, or switch to Ethernet with a LAN-OTG cable. Avoid crowded Wi-Fi channels and move the phones closer. |
| I changed the mode and nothing happened | Wait for the panel to restart after SAVE, then reload the page. Still the same? Choose **Restart App** in Actions. |
| The IP does not change | Open the app, go to **Settings**, **Setup**, and check that **Default assistant** is done. Then check the method in the **Rotation** tab. |

Phones that run all day stay on charge. Watch the **Battery** value in the **Activity** column, and replace a phone with a swollen battery. Still stuck? Message us on [Telegram (@xproxyio)](https://t.me/xproxyio) or start a [remote support session](https://xproxy.io/document/remote-support).

## What next?

Your phone is a proxy now. Find its ports, then choose how it rotates.

[HTTP &amp; SOCKS5 setup →](https://xproxy.io/document/how-use-proxy-format-http-socks5) [Rotate the IP →](https://xproxy.io/document/how-change-rotate-ip) [Activate your license →](https://xproxy.io/document/how-active-upgrade-license)

---

Source: https://xproxy.io/document/installing-android-xproxy-nextgen
