[GH-ISSUE #3535] port limitation or whatever #2403

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

Originally created by @hxehex on GitHub (Sep 22, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3535

Describe the bug

when I try to set any inbound port to 65535 for example it still sets it to 65531

How to repeat the problem?

set the any inbound port higher than 65531 it will still set it to 65531

Expected action

set the port that I wanted e.g. 65535 not 65531

Received action

No response

3x-ui Version

doesn't matter

Xray-core Version

doesn't matter

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 @hxehex on GitHub (Sep 22, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3535 ### Describe the bug when I try to set any inbound port to 65535 for example it still sets it to 65531 ### How to repeat the problem? set the any inbound port higher than 65531 it will still set it to 65531 ### Expected action set the port that I wanted e.g. 65535 not 65531 ### Received action _No response_ ### 3x-ui Version doesn't matter ### Xray-core Version doesn't matter ### 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:25:15 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dimasmir03 commented on GitHub (Sep 22, 2025):

not a bug, but an error of the brain
take a closer look at the port number you want to install and think about it

<!-- gh-comment-id:3318950197 --> @dimasmir03 commented on GitHub (Sep 22, 2025): not a bug, but an error of the brain take a closer look at the port number you want to install and think about it
Author
Owner

@hxehex commented on GitHub (Sep 22, 2025):

??
any port higher than 65531 e.g.

65534 gets set to -> 65531

<!-- gh-comment-id:3319128599 --> @hxehex commented on GitHub (Sep 22, 2025): ?? any port higher than 65531 e.g. 65534 gets set to -> 65531
Author
Owner

@dimasmir03 commented on GitHub (Sep 22, 2025):

max 65 535

I was a little off, but it's all right. You're only losing the last 4 ports.

<!-- gh-comment-id:3319197187 --> @dimasmir03 commented on GitHub (Sep 22, 2025): max 65 535 I was a little off, but it's all right. You're only losing the last 4 ports.
Author
Owner

@hxehex commented on GitHub (Sep 22, 2025):

that still doesn't make any sense to me.

"max 65 535"

then it still should allow setting the 65534 port. instead it gets set to 65531. how else do I explain this? what part of this did you not understand...?

<!-- gh-comment-id:3319268674 --> @hxehex commented on GitHub (Sep 22, 2025): that still doesn't make any sense to me. > "max 65 535" then it still should allow setting the 65534 port. instead it gets set to 65531. how else do I explain this? what part of this did you not understand...?
Author
Owner

@hxehex commented on GitHub (Sep 22, 2025):

"You're only losing the last 4 ports."
what if I have such a case where I explicitly need these last 4 ports?

<!-- gh-comment-id:3319271831 --> @hxehex commented on GitHub (Sep 22, 2025): > "You're only losing the last 4 ports." what if I have such a case where I explicitly need these last 4 ports?
Author
Owner

@dimasmir03 commented on GitHub (Sep 22, 2025):

What kind of cases could that be?

<!-- gh-comment-id:3319504837 --> @dimasmir03 commented on GitHub (Sep 22, 2025): What kind of cases could that be?
Author
Owner

@dimasmir03 commented on GitHub (Sep 22, 2025):

I sent PR #3536

<!-- gh-comment-id:3319550475 --> @dimasmir03 commented on GitHub (Sep 22, 2025): I sent PR #3536
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#2403
No description provided.