You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
XCL_NETWORK=0: the title still binds UDP 3074 on every interface (Windows Firewall asks, the network can reach it) #568
With XCL_NETWORK=0 the retail title (1.0.2.1) binds a UDP socket on 0.0.0.0:3074 at start. netoff refuses connect / sendto / name lookups, but not bind, so:
Windows Firewall shows "Do you want to allow public and private networks to access this app?" for xcl.exe, once per folder it runs from (every build tested from its own folder asks again; "Allow" needs an administrator).
If it is allowed, packets from the network reach the title's socket while it runs "without a network".
Seen:main2997c9a and PR builds on it, release, Windows 11 Pro build 26300, RTX 5070 Ti, Ryzen 7 9800X3D. During a run (smoke.ps1 sets XCL_NETWORK=0):
PS> Get-NetUDPEndpoint -OwningProcess <pid of the xcl.exe running the title>
LocalAddress LocalPort
------------ ---------
0.0.0.0 3074
Proposed fix (small): with XCL_NETWORK=0, a bind to 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 like connect: in the title's ws2_32 imports (ordinal 2) and in the system's ws2_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.
Merge order for the nine open XCL_NETWORK=0 PRs, so they can go in as one batch with as few rebases as possible. Checked on main930e8b4 with 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):
Activity
tiagonleal commentedon Nov 24, 2026
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 Netoff: block ConnectEx when network is disabled #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 XCL_NETWORK=0: the system's WSASendMsg refuses too #612, 20 after XCL_NETWORK=0: WSASendTo lets loopback and connected sockets through, matching sendto #807 (it fillsWSASendTo's spare slot), 21 after XCL_NETWORK=0: a bind to a network address binds to loopback #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 XCL_NETWORK=0: a bind to a network address binds to loopback #570, XCL_NETWORK=0: the system's WSASendMsg refuses too #612, XCL_NETWORK=0: WSASendTo lets loopback and connected sockets through, matching sendto #807, XCL_NETWORK=0: parse loopback IPs in local_name instead of matching any 127. prefix #808 and XCL_NETWORK=0: WSAConnectByList refuses all but loopback #821, and the existing two that Netoff: block ConnectEx when network is disabled #462 and XCL_NETWORK=0: IPv4-mapped loopback (::ffff:127.x.x.x) goes through #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).
xcl run: rewrite non-loopback bind to loopback under XCL_NETWORK=0