# X-Hub Troubleshooting and FAQ

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

Fix the common X-Hub problems: port in use, box will not pair, Telegram blocked, Free plan limits, offline server and a lost password.

Find your message or symptom in the tables, then follow the fix. Most problems are a port, an address or a license limit.

**You need:** access to the box panel or a terminal on the box. Still stuck? Open [Remote support](https://xproxy.io/document/remote-support) and share the message you see.

## Turning on X-Hub on the box

| You see | What it means | Fix |
| --- | --- | --- |
| **port N is already used on this box; choose another port** | Another app uses the port. | Type another free port (1 to 65535) and click **Turn on the hub**. |
| **the port must be a number from 1 to 65535** | The port field is empty or wrong. | Type a number. |
| **This XProxy version has no hub. Update XProxy to get it.** | An old XProxy version. | [Update XProxy](https://xproxy.io/document/update-xproxy). |
| **this box has no hub and it could not be downloaded** | The box could not download the signed X-Hub from x-proxy.io. | Check the box has internet and that nothing blocks `x-proxy.io`, then try again. |
| **this box is connected to the hub...; disconnect it first** | The box already joined another X-Hub. | Remove it in that X-Hub, then run `sudo xtool hub disconnect` on the box. |
| **the hub runs, but this box could not join it** | X-Hub started but pairing failed. | Turn X-Hub off and on again. |
| **the hub did not start** | The X-Hub program stopped at start. | Run `journalctl -u xproxy-hub-local` on the box and send it to support. |

## I cannot open the X-Hub page

- **From another network or the internet:** X-Hub on your box answers only your LAN and Tailscale, on purpose, even if your router forwards ports. Use a computer on your network, join Tailscale, or install X-Hub on a [VPS](https://xproxy.io/document/xproxy-hub-setup).
- **Wrong address:** use the **Address** shown in **General Settings → XProxy Hub** (X-Hub), with the port.
- **Waiting after wrong passwords:** after 10 wrong tries in 15 minutes X-Hub makes you wait. Wait and try again.

## Connecting another box

| You see | Fix |
| --- | --- |
| **the hub URL uses plain http://; use https://, or add --insecure for a hub on your own LAN** | Add `--insecure` for an X-Hub on your LAN. Otherwise use an `https://` address. |
| **cannot reach the hub** | Open the address in a browser on the same network as the box. Check the port and the firewall. |
| **already connected to...; run 'xtool hub disconnect' first** | Run `sudo xtool hub disconnect`, then pair again. |
| **run as root (sudo xtool hub pair...)** | Add `sudo` in front. |
| X-Hub: **Unknown code** / **This code was already used** / **This code expired** | Run `sudo xtool hub pair...` again for a new code and type it exactly. |
| The box says **this hub no longer knows this box** | The server was removed in X-Hub. Run `sudo xtool hub disconnect`, then pair again. |

## A server shows offline

1. Check the box has power and internet.
2. On the box, run `xtool hub status`. The agent should be running.
3. Restart the box app from the panel (see [Update XProxy](https://xproxy.io/document/update-xproxy)) if the controller is down. X-Hub tolerates a short restart; after 30 seconds without the controller, every modem shows disconnected.
4. After X-Hub restarts, boxes need time to reconnect. Wait a minute before you worry.

## Rotate or reboot fails

| You see | Why |
| --- | --- |
| **the box license does not include this action** | The box is on the **Free** plan. Rotation, modem reboot, USB reset and connect or disconnect need **Basic** or higher. A Free license also runs 5 modems at most. [Upgrade the license](https://xproxy.io/document/how-active-upgrade-license). |
| The button is grey | The box is offline. Actions wait until it reconnects. |
| Telegram or AI says a change needs approval | It is a risky change. Approve it with your passkey: [Passkeys](https://xproxy.io/document/xproxy-hub-passkeys). |

X-Hub never changes license rules. It asks the box, and the box answers exactly as its own panel would.

## Telegram problems

- **Not configured:** an owner pastes the bot token in **Telegram → Bot setup**.
- **Telegram does not accept the token:** copy the whole token again from **@BotFather**. If you revoked it there, create a new one.
- **No messages and Telegram is blocked in your country:** X-Hub must reach `api.telegram.org`. Use a Bot API relay with the `-telegram-api` option (X-Hub on a VPS).
- **The bot does not answer you:** you must link your account first with **Get my link**.
- **A chat gets nothing:** the chat may be muted. Send `/unmute`.

More in [Telegram bot](https://xproxy.io/document/xproxy-hub-telegram).

## FAQ

### Does proxy traffic go through X-Hub?

No. Boxes only send status to X-Hub. Your proxies work with X-Hub off, down or removed.

### Do I need a paid plan for X-Hub?

X-Hub works on every plan. What you can **do** through it follows each box license.

### How do I move X-Hub to a VPS?

Install it on the VPS. Remove each server in the old X-Hub, run `sudo xtool hub disconnect` on each box, and pair them with the new X-Hub. Turn the old X-Hub off in the panel.

### What do I back up?

On a VPS, the file `/var/lib/xproxy-hub/hub.db`. It holds users, passkeys, paired boxes, webhooks and Telegram settings. Keep copies private.

### How do I get rid of X-Hub?

Turn it off in the panel (**Turn off**, tick the delete option to wipe its data). On other boxes, run `sudo xtool hub disconnect`.

## What next?

Back to the guides.

[What is X-Hub →](https://xproxy.io/document/xproxy-hub) [Turn on X-Hub →](https://xproxy.io/document/xproxy-hub-setup) [Remote support →](https://xproxy.io/document/remote-support)

---

Source: https://xproxy.io/document/xproxy-hub-troubleshooting
