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 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/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
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.
Type a port, and the checker says free or taken, and gives the nearest free port.
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
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.
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.
| Where | What is checked |
|---|---|
| Proxy group | The Parent Port of a new group. |
| Selling ports | Each row of an import. A taken port shows as a note on the row, and the generator picks free ports. |
| Proxy Settings | A 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. |
| VPN | The start ports of WireGuard and OpenVPN: WireGuard ports 8001-8064 are already in use (...), choose another start port! |
| Dashboard | A new dashboard port. |
| X-Hub, NextGen, Remote VPS | The 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 see | What to do |
|---|---|
| Customers get 407 on some requests but not on others | Two 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 it | Click 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 nginx | The 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 use | Nothing was changed. Use the free port the message gives, or pick another with the port checker. |
| A port you use is not in the table | The table lists only what your box uses now. A feature that is switched off has no ports. Switch it on and click Re-scan. |

