[GH-ISSUE #3640] ipv6 only binding #2444

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

Originally created by @Dmitry-Tcheban on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3640

Describe the bug

I have a VPS with debian 13 and dual stack network (/proc/sys/net/ipv6/bindv6only=0, switching off in host ipv6 does not actually help)

I have old container with 2.5.2 and it works out the box and binds to ipv4
I have downloaded new 2.8.6 (2.8.7) and somehow xray binds only to ipv6, ie
sudo docker exec 3xui_app netstat -tulpn | grep :443
tcp 0 0 :::443

and proxy client does not actually work because it tries to work through ipv4

listen interface is set to 0.0.0.0, I have tried to move to ports mapping in yaml instead of hosts mode, I have spend 2 days trying different things... no luck

How to repeat the problem?

  1. Dual stack vps
  2. Configure inbounds usually for 0.0.0.0

Expected action

sudo docker exec 3xui_app netstat -tulpn | grep :443

Received action

sudo docker exec 3xui_app netstat -tulpn | grep :443
tcp 0 0 :::443

3x-ui Version

2.8.6

Xray-core Version

25.12.8

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 @Dmitry-Tcheban on GitHub (Jan 6, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3640 ### Describe the bug I have a VPS with debian 13 and dual stack network (/proc/sys/net/ipv6/bindv6only=0, switching off in host ipv6 does not actually help) I have old container with 2.5.2 and it works out the box and binds to ipv4 I have downloaded new 2.8.6 (2.8.7) and somehow xray binds only to ipv6, ie sudo docker exec 3xui_app netstat -tulpn | grep :443 tcp 0 0 :::443 and proxy client does not actually work because it tries to work through ipv4 listen interface is set to 0.0.0.0, I have tried to move to ports mapping in yaml instead of hosts mode, I have spend 2 days trying different things... no luck ### How to repeat the problem? 1. Dual stack vps 2. Configure inbounds usually for 0.0.0.0 ### Expected action sudo docker exec 3xui_app netstat -tulpn | grep :443 ### Received action sudo docker exec 3xui_app netstat -tulpn | grep :443 tcp 0 0 :::443 ### 3x-ui Version 2.8.6 ### Xray-core Version 25.12.8 ### 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:33 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@salehghotbani commented on GitHub (Jan 6, 2026):

Exactly happened in ubuntu 24.04

<!-- gh-comment-id:3715796307 --> @salehghotbani commented on GitHub (Jan 6, 2026): Exactly happened in ubuntu 24.04
Author
Owner

@negartarh commented on GitHub (Jan 7, 2026):

Exactly happened in ubuntu 24.04

and in Ubuntu 22

<!-- gh-comment-id:3716928180 --> @negartarh commented on GitHub (Jan 7, 2026): > Exactly happened in ubuntu 24.04 and in Ubuntu 22
Author
Owner

@Dmitry-Tcheban commented on GitHub (Jan 7, 2026):

Not sure it is OS specific problem. 2.5.2 image works just fine on this host
I have also tried to set additional env in yml. It did not hep neither, despite the fact env was propagated- I have checked that

environment:
  XRAY_LISTEN_IPV4_ONLY: "1"
  GODEBUG: "netdns=go"
<!-- gh-comment-id:3717532358 --> @Dmitry-Tcheban commented on GitHub (Jan 7, 2026): Not sure it is OS specific problem. 2.5.2 image works just fine on this host I have also tried to set additional env in yml. It did not hep neither, despite the fact env was propagated- I have checked that environment: XRAY_LISTEN_IPV4_ONLY: "1" GODEBUG: "netdns=go"
Author
Owner

@MrGnUm commented on GitHub (Jan 9, 2026):

Hello! Were you able to fix the issue?
I encountered the same problem—the panel suddenly stopped binding to IPv4.

<!-- gh-comment-id:3729143559 --> @MrGnUm commented on GitHub (Jan 9, 2026): Hello! Were you able to fix the issue? I encountered the same problem—the panel suddenly stopped binding to IPv4.
Author
Owner

@truer0man commented on GitHub (Feb 25, 2026):

Confirm same issue. version 2.8.10. Ubuntu 24.04.1 LTS

Image
<!-- gh-comment-id:3961736868 --> @truer0man commented on GitHub (Feb 25, 2026): Confirm same issue. version 2.8.10. Ubuntu 24.04.1 LTS <img width="532" height="186" alt="Image" src="https://github.com/user-attachments/assets/d2330ffc-04aa-4770-a77c-56e7a80c94e1" />
Author
Owner

@SignFinder commented on GitHub (Apr 14, 2026):

It is normal behavior when dual-stack socket exists.
A listening socket that is bound to ::, i.e. any address IPv6 address (INADDR6_ANY), may or may not also listen to connections using IPv4.
I have checked v2.8.11 and despite there is not any ipv4 sockets in netstat (only ipv6) - it works with ipv4 well

<!-- gh-comment-id:4246773895 --> @SignFinder commented on GitHub (Apr 14, 2026): It is normal behavior when dual-stack socket exists. A listening socket that is bound to ::, i.e. any address IPv6 address (INADDR6_ANY), may or may not also listen to connections using IPv4. I have checked v2.8.11 and despite there is not any ipv4 sockets in netstat (only ipv6) - it works with ipv4 well
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#2444
No description provided.