Skip to content

Ports in Use: Find and Fix Port Conflicts on Your Box

Ask AI

Ready taskDo it with me, step by step

Chat assistants

Open in ChatGPTNew tabOpen in ClaudeNew tab

Coding agents

Claude CodeOpens the desktop appCodexOpens the desktop appCursorOpens the app from the web

Copy

View as MarkdownPlain text for AI tools
See the prompt
Read https://xproxy.io/document/ports-in-use.md, the XProxy guide "Ports in Use: Find and Fix Port Conflicts on Your Box". 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.

XProxy 21.3.49+Available from XProxy 21.3.49.How to update →

Every proxy, VPN, dashboard and tool on your box needs its own port. The Ports in use tab shows who owns each port, warns you when two want the same one, and checks a port before you use it.

You need: XProxy 21.3.49 or later. The tab is in every plan. The conflict warning on save came with 21.3.47 for proxy groups and selling ports. Update with Update XProxy.

In short

Find a clash

A banner on every page and a card for each port that two users want. A program outside XProxy on one of your ports is shown too.

Check before you pick

Type a port, and the checker says free or taken, and gives the nearest free port.

Safe by default

The box refuses a port that is taken when you save, and tells you which one is free.

Find and fix a port clash

Step 1 of 6

Open Ports in use

In the left menu click General Settings, then Forwarding Ports 1. Click the tab Ports in use 2.

When the box is healthy, Conflicts says No conflicts: every port of this box has one user 4. Click Re-scan 3 to look again now.

The box also checks by itself when it starts and then every 5 minutes. You do not have to open this page to be warned: a banner shows on every page when there is a conflict.

Where the box refuses a taken port

The same check runs in every place that takes a port. If the port is already in use, you get a message and the change is not saved.

WhereWhat is checked
Proxy groupThe Parent Port of a new group.
Selling portsEach row of an import. A taken port shows as a note on the row, and the generator picks free ports.
Proxy SettingsA new Starting Port moves every modem port. It is refused when the new modem ports would land on ports in use. Shadowsocks ports are checked the same way, and so is the Proxy through WAN port.
VPNThe start ports of WireGuard and OpenVPN: WireGuard ports 8001-8064 are already in use (...), choose another start port!
DashboardA new dashboard port.
X-Hub, NextGen, Remote VPSThe X-Hub port, the ports of Android NextGen forwards when you switch them on, and the WireGuard port of Remote VPS.

Something not working?

You seeWhat to do
Customers get 407 on some requests but not on othersTwo users share a port. Open Ports in use and look at Conflicts. Move one of them to a free port.
The banner Port conflict does not go away after you fixed itClick Re-scan on the Ports in use tab. The banner updates when you open a page and once a minute.
A conflict with a program such as nginxThe program started after XProxy, or the port moved. Stop the program, or move the XProxy feature to a port from the checker.
Port N is not a valid port (1-65535)Type a whole number from 1 to 65535.
Save is refused with already in useNothing was changed. Use the free port the message gives, or pick another with the port checker.
A port you use is not in the tableThe table lists only what your box uses now. A feature that is switched off has no ports. Switch it on and click Re-scan.
Still stuck?A technician can look at your device with a one-time PIN, or chat with us on Telegram.