[GH-ISSUE #1760] Unable to listen to IPv4, only able to listen to IPv6, resulting in web inability to use #1197

Closed
opened 2026-10-31 20:17:10 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @KanLai on GitHub (Feb 6, 2024).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1760

Originally created by @KanLai on GitHub (Feb 6, 2024). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1760
bsakaguchi 2026-10-31 20:17:10 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@idokit365 commented on GitHub (Mar 1, 2024):

add ports config in the docker-compose.yml is ok:


version: "3"

services:
3x-ui:
image: ghcr.io/mhsanaei/3x-ui:latest
container_name: 3x-ui
hostname: yourhostname
ports:
- "2053:2053"
volumes:
- $PWD/db/:/etc/x-ui/
- $PWD/cert/:/root/cert/
environment:
XRAY_VMESS_AEAD_FORCED: "false"
tty: true
network_mode: bridge
restart: unless-stopped

<!-- gh-comment-id:1972315411 --> @idokit365 commented on GitHub (Mar 1, 2024): add ports config in the docker-compose.yml is ok: --- version: "3" services: 3x-ui: image: ghcr.io/mhsanaei/3x-ui:latest container_name: 3x-ui hostname: yourhostname ports: - "2053:2053" volumes: - $PWD/db/:/etc/x-ui/ - $PWD/cert/:/root/cert/ environment: XRAY_VMESS_AEAD_FORCED: "false" tty: true network_mode: bridge restart: unless-stopped
Author
Owner

@RootSir commented on GitHub (May 30, 2024):

add ports config in the docker-compose.yml is ok:

version: "3"

services: 3x-ui: image: ghcr.io/mhsanaei/3x-ui:latest container_name: 3x-ui hostname: yourhostname ports: - "2053:2053" volumes: - $PWD/db/:/etc/x-ui/ - $PWD/cert/:/root/cert/ environment: XRAY_VMESS_AEAD_FORCED: "false" tty: true network_mode: bridge restart: unless-stopped

Is there any way to solve this quetion without using docker?

<!-- gh-comment-id:2139225585 --> @RootSir commented on GitHub (May 30, 2024): > add ports config in the docker-compose.yml is ok: > > version: "3" > > services: 3x-ui: image: ghcr.io/mhsanaei/3x-ui:latest container_name: 3x-ui hostname: yourhostname ports: - "2053:2053" volumes: - $PWD/db/:/etc/x-ui/ - $PWD/cert/:/root/cert/ environment: XRAY_VMESS_AEAD_FORCED: "false" tty: true network_mode: bridge restart: unless-stopped Is there any way to solve this quetion without using docker?
Author
Owner

@SuperMonkeyC1 commented on GitHub (Feb 27, 2025):

I seem to have encountered this problem as well, I deployed it using scripts, and there are public network ipv6 and ipv4 on my vps, it only listens to ipv6 addresses, not ipv4 addresses

root@arm203-9:/usr/local/x-ui# systemctl status x-ui
● x-ui.service - x-ui Service
Loaded: loaded (/etc/systemd/system/x-ui.service; enabled; preset: enabled)
Active: active (running) since Thu 2025-02-27 01:27:54 UTC; 22min ago
Main PID: 983 (x-ui)
Tasks: 19 (limit: 21450)
Memory: 112.7M (peak: 137.9M)
CPU: 1.905s
CGroup: /system.slice/x-ui.service
├─ 983 /usr/local/x-ui/x-ui
└─1285 bin/xray-linux-arm64 -c bin/config.json

Feb 27 01:27:54 arm203-9 systemd[1]: Started x-ui.service - x-ui Service.
Feb 27 01:27:57 arm203-9 x-ui[983]: 2025/02/27 01:27:57 Starting x-ui 2.5.3
Feb 27 01:27:57 arm203-9 /usr/local/x-ui/x-ui[983]: INFO - Web server running HTTP on [::]:12345
root@arm203-9:/usr/local/x-ui#

<!-- gh-comment-id:2686603307 --> @SuperMonkeyC1 commented on GitHub (Feb 27, 2025): I seem to have encountered this problem as well, I deployed it using scripts, and there are public network ipv6 and ipv4 on my vps, it only listens to ipv6 addresses, not ipv4 addresses root@arm203-9:/usr/local/x-ui# systemctl status x-ui ● x-ui.service - x-ui Service Loaded: loaded (/etc/systemd/system/x-ui.service; enabled; preset: enabled) Active: active (running) since Thu 2025-02-27 01:27:54 UTC; 22min ago Main PID: 983 (x-ui) Tasks: 19 (limit: 21450) Memory: 112.7M (peak: 137.9M) CPU: 1.905s CGroup: /system.slice/x-ui.service ├─ 983 /usr/local/x-ui/x-ui └─1285 bin/xray-linux-arm64 -c bin/config.json Feb 27 01:27:54 arm203-9 systemd[1]: Started x-ui.service - x-ui Service. Feb 27 01:27:57 arm203-9 x-ui[983]: 2025/02/27 01:27:57 Starting x-ui 2.5.3 Feb 27 01:27:57 arm203-9 /usr/local/x-ui/x-ui[983]: INFO - Web server running HTTP on [::]:12345 root@arm203-9:/usr/local/x-ui#
Author
Owner

@fdfytr commented on GitHub (Aug 3, 2025):

https://github.com/MHSanaei/3x-ui/issues/3107

<!-- gh-comment-id:3148693100 --> @fdfytr commented on GitHub (Aug 3, 2025): https://github.com/MHSanaei/3x-ui/issues/3107
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#1197
No description provided.