mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5630] [Bug]: Remote client IPs are not displayed in the IP Log panel in v3.4.1 #3927
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3927
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mkalantar on GitHub (Jun 28, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5630
Describe the bug
In version 3.4.1, the client IP addresses from the Remote Log are not displayed in the IP Log panel. Additionally, the panel incorrectly shows the number of connected IP addresses as 0, even when clients are connected
How to reproduce the problem
Expected behavior
Actual behavior
Relevant logs
Screenshots
No response
3x-ui version
3.4.1
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
Debian 13
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 28, 2026):
In v3.x (including v3.4.1), the IP Log panel is not populated from the Xray access log. Client IPs are collected exclusively through Xray's internal gRPC online-stats API (
GetUsersStats), polled every 10 seconds by the panel's background job (internal/web/job/check_client_ip_job.go). Enabling, disabling, or changing the access log has no effect on what appears in the IP Log panel.How the IP Log works:
inbound_client_ipsdatabase table, which the panel reads when you open the IP Log modal.statsUserOnline: trueis automatically injected into the generated Xray policy config (even if absent from the stored template), so the Xray core should track per-email IPs automatically.Conditions that can produce 0 IPs:
XUI_ENABLE_FAIL2BAN=falseis set in/etc/default/x-ui.When this env var is set to
false, the job collects online user data from the API but exits before writing anything to the database (internal/web/job/check_client_ip_job.go, line 59). The default istrue(enabled), so this only affects users who have explicitly disabled it. Check with:The Xray gRPC API is not reachable.
If Xray is running but the API inbound on port 62789 (or your custom port) is inaccessible,
collectFromOnlineAPIreturns nothing. Verify Xray is running and the API port is listening:The Xray process is not running or has crashed.
If Xray is not running, the job skips the run immediately. Check status from the panel home page or:
The Xray core does not support the online-stats API.
Very old Xray binaries (shipped before the
GetUsersStatsRPC was added) returnUnimplemented, after which the panel stops trying until the next restart. This would be logged asxray core does not support the online-stats API. The bundled core in v3.4.1 does support it, but a custom binary set viaXUI_BIN_FOLDERmight not.To diagnose, please provide:
The Xray core version — visible in the panel header or via:
(option 15 shows the Xray version, or check the panel's home page version badge)
Xray status — is the Xray indicator green on the panel home page?
The relevant portion of the panel log:
Contents of
/etc/default/x-ui(redact any sensitive values).Whether the issue is specific to a particular protocol/inbound type.
This reply was generated automatically; a maintainer may follow up.
@mkalantar commented on GitHub (Jun 28, 2026):
for more clarification in version 3.3.1 with Xray version 26.6.1 it is working. also the file /etc/default/x-ui doesn't exists on that server and output of log LimitIP... is empty as this updated server.
@MHSanaei commented on GitHub (Jun 28, 2026):
It looks like you changed the rules. Use the reset button and don't open any issues without logs and useful information.