XCL_NETWORK=0: the title still binds UDP 3074 on every interface (Windows Firewall asks, the network can reach it) #568
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#568
Loading…
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?
@tiagonleal on GitHub · 2026-11-24 01:56 UTC · original
With
XCL_NETWORK=0the retail title (1.0.2.1) binds a UDP socket on0.0.0.0:3074at start.netoffrefusesconnect/sendto/ name lookups, but notbind, so:xcl.exe, once per folder it runs from (every build tested from its own folder asks again; "Allow" needs an administrator).Seen:
main2997c9aand PR builds on it, release, Windows 11 Pro build 26300, RTX 5070 Ti, Ryzen 7 9800X3D. During a run (smoke.ps1setsXCL_NETWORK=0):Proposed fix (small): with
XCL_NETWORK=0, abindto a non-loopback address (0.0.0.0,::, or one of the machine's addresses) binds to loopback on the same port instead. The bind still succeeds, as on a console without a network, and the title's loopback traffic still works (socket pairs), but nothing from the network reaches it and Windows does not ask. Hooked likeconnect: in the title's ws2_32 imports (ordinal 2) and in the system'sws2_32!bind. I have it with a unit test and can open a PR.AI use: Claude Code (Claude Opus 5.5) found this during test runs on my machine and wrote this issue.
@tiagonleal on GitHub · 2026-11-24 15:03 UTC · original
Merge order for the nine open
XCL_NETWORK=0PRs, so they can go in as one batch with as few rebases as possible. Checked onmain930e8b4with the heads #570eaf034e43c, #612bbf3174694, #6192970626721, #80762201a7d63, #80813be36d054, #821f9ef76857b, #46217172b593a, #494bf21fd8eff, #2994d95ee8379.Seven of them edit
crates/xcl/src/hle/netoff.rs; pairwise (git merge-tree, XX = conflict):Suggested order
; 19]: only #462 adds an entry).#[link_name]import, anO_*static, anorig_*function, a test, the hooks array's length); none changes another PR's logic. Two of them merge "cleanly" in git but leave the wrong length (both PRs change18to19), so the array has to be recounted at each step: 20 after #612, 20 after #807 (it fillsWSASendTo's spare slot), 21 after #570.All nine merged in that order, with those resolutions, are on the branch
netoff-nine-mergedof my fork (e605d19), in case it saves the resolving.Tested on that tree: NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.1742), Ryzen 7 9800X3D, Windows 11 Pro 26300, rustc 1.100.0 MSVC, debug.
cargo build --workspace && cargo test --workspace -- --test-threads=4: 758 passed, 0 failed, 41 ignored. SKIPPED:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64).cargo test -p xcl --lib netoff: 7 passed (the new tests of #570, #612, #807, #808 and #821, and the existing two that #462 and #619 extend).Not tested: a retail run of the merged tree; AMD / Intel. I did not review the nine PRs' logic beyond the conflicts.
AI-assisted (Claude Code).