[GH-ISSUE #4419] Remote node inbound ports conflict #3017

Closed
opened 2026-10-31 20:29:32 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @Janvar58 on GitHub (May 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4419

Describe the bug

When adding multiple remote nodes, any inbound that uses the same port as an inbound on another remote node does not appear in the inbound list.
Example: if both nodes have inbounds on ports 443 or 8443, only the inbounds from the first node are shown.

How to repeat the problem?

Add a remote node (Node A) with inbounds on ports 443 and 8443.
Add a second remote node (Node B) with inbounds also on ports 443 and 8443.
Open the inbound list on the central server.
Only Node A’s inbounds are shown. Node B’s inbounds are missing.
Change Node B’s ports (e.g. 443 → 442, 8443 → 8442) — they immediately appear.
Change them back to 443/8443 — they disappear again.

Expected action

All remote node inbounds should be displayed, even when ports overlap, because nodes run on different servers and do not conflict.

Received action

Inbounds on the same ports (443/8443) from additional remote nodes are hidden and do not appear in the inbound list.

3x-ui Version

3.0.2

Xray-core Version

26.4.25

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @Janvar58 on GitHub (May 15, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4419 ### Describe the bug When adding multiple remote nodes, any inbound that uses the same port as an inbound on another remote node does not appear in the inbound list. Example: if both nodes have inbounds on ports 443 or 8443, only the inbounds from the first node are shown. ### How to repeat the problem? Add a remote node (Node A) with inbounds on ports 443 and 8443. Add a second remote node (Node B) with inbounds also on ports 443 and 8443. Open the inbound list on the central server. Only Node A’s inbounds are shown. Node B’s inbounds are missing. Change Node B’s ports (e.g. 443 → 442, 8443 → 8442) — they immediately appear. Change them back to 443/8443 — they disappear again. ### Expected action All remote node inbounds should be displayed, even when ports overlap, because nodes run on different servers and do not conflict. ### Received action Inbounds on the same ports (443/8443) from additional remote nodes are hidden and do not appear in the inbound list. ### 3x-ui Version 3.0.2 ### Xray-core Version 26.4.25 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:29:32 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SomeBytee commented on GitHub (May 16, 2026):

Hi , i ran into the same issue , i hope it would be fixed in the next version ( if it's even possible ) . this will make the Node integreation more flexible and will prevent some issues regarding port mapping on different nodes. for now i just had to change ports on my other servers and make sure it is not going to be the same as others

<!-- gh-comment-id:4465106714 --> @SomeBytee commented on GitHub (May 16, 2026): Hi , i ran into the same issue , i hope it would be fixed in the next version ( if it's even possible ) . this will make the Node integreation more flexible and will prevent some issues regarding port mapping on different nodes. for now i just had to change ports on my other servers and make sure it is not going to be the same as others
Author
Owner

@wah2233 commented on GitHub (May 16, 2026):

Temporary fix method: change back to 443/8443 on the central server, it can keep them appearing

<!-- gh-comment-id:4465149855 --> @wah2233 commented on GitHub (May 16, 2026): Temporary fix method: change back to 443/8443 on the central server, it can keep them appearing
Author
Owner

@SomeBytee commented on GitHub (May 16, 2026):

Yes , you are right , creating/changing an inbound with the same port after Node is deployed is the way for now

<!-- gh-comment-id:4466470059 --> @SomeBytee commented on GitHub (May 16, 2026): Yes , you are right , creating/changing an inbound with the same port after Node is deployed is the way for now
Author
Owner

@mooronsi commented on GitHub (May 24, 2026):

The inbounds table has a global UNIQUE constraint on tag
All nodes generate the same tag for the same port (e.g. inbound-443)
Only the first node inbound gets saved, the rest silently fail on insert due to a UNIQUE violation

Maybe change unique index from tag to tag and node_id?

<!-- gh-comment-id:4529003873 --> @mooronsi commented on GitHub (May 24, 2026): The inbounds table has a global UNIQUE constraint on tag All nodes generate the same tag for the same port (e.g. inbound-443) Only the first node inbound gets saved, the rest silently fail on insert due to a UNIQUE violation Maybe change unique index from tag to tag and node_id?
Author
Owner

@scioner commented on GitHub (May 25, 2026):

3.1.0 still have this issue, at least for SQLite db.

<!-- gh-comment-id:4534689443 --> @scioner commented on GitHub (May 25, 2026): 3.1.0 still have this issue, at least for SQLite db.
Author
Owner

@hobbes3 commented on GitHub (May 25, 2026):

Oh, so is this why I'm missing a (VLESS) inbound from my remote node?

Both my main and remote nodes have 2 inbounds: VLESS and Hysteria on port 443. But I only see 3 total inbound (2 local and 1 remote Hysteria). It's not showing the remote inbound VLESS port 443.

Main node:

Image

Remote node (hong-kong):

Image
<!-- gh-comment-id:4535554717 --> @hobbes3 commented on GitHub (May 25, 2026): Oh, so is this why I'm missing a (VLESS) inbound from my remote node? Both my main and remote nodes have 2 inbounds: VLESS and Hysteria on port 443. But I only see 3 total inbound (2 local and 1 remote Hysteria). It's not showing the remote inbound VLESS port 443. Main node: <img width="1106" height="221" alt="Image" src="https://github.com/user-attachments/assets/a86928ce-9e06-4858-80fc-87b5535abc0f" /> Remote node (`hong-kong`): <img width="1078" height="171" alt="Image" src="https://github.com/user-attachments/assets/69f1609e-ad51-4988-a227-4063b6652456" />
Author
Owner

@hobbes3 commented on GitHub (May 26, 2026):

Temporary fix method: change back to 443/8443 on the central server, it can keep them appearing

Note that if you use this "hack", you may get a client with ghost inbounds (with just id numbers, not name) and it becomes undeletable/unmodifiable:

Image Image

may be similar to issue #4149.

<!-- gh-comment-id:4540005409 --> @hobbes3 commented on GitHub (May 26, 2026): > Temporary fix method: change back to 443/8443 on the central server, it can keep them appearing Note that if you use this "hack", you may get a client with ghost inbounds (with just id numbers, not name) and it becomes undeletable/unmodifiable: <img width="1445" height="99" alt="Image" src="https://github.com/user-attachments/assets/b79b9362-96a9-420e-b17c-89cf0d2ea1ba" /> <img width="352" height="48" alt="Image" src="https://github.com/user-attachments/assets/f10064ad-5048-4578-86e0-2ae428f90e48" /> may be similar to issue #4149.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3017
No description provided.