Repository navigation
reLCS launcher v0.4.0 — LAN direct route: 157 ms relay hop gone for local servers
reLCS launcher v0.4.0 — the local server stops taking the scenic route
If the game host is on your own network, every join used to leave the house, cross to
Dallas and come straight back: PC → 104.251.218.227 → WireGuard → the same LAN. That is
157 ms of round trip for traffic that had 5 ms to travel, and it is why a local server
felt like a remote one. The server browser now finds the host on the LAN and joins it
directly; a client that is not on that network keeps using the relay, byte for byte as
before. Protocol stays v9.
| Route (same server, same second) | Game RTT |
|---|---|
| through the relay | 157 ms, 125 ms |
| direct on the LAN | 5 ms, 5 ms |
What changed
-
Launcher: direct route when the server is local. The master's list reply now
carries each server's own LAN address. For every row the launcher probes
lanIp:portin parallel (1.2 s budget, one retry) and rewrites the row only when the
probe answers with the same hostname — a private address on your network can
belong to an unrelated machine. Rewriting the row (instead of adding a second
address) keeps ping, join, favorites and the address column consistent; the browser
marks itdirect. A failed probe leaves the row on the relay, so nobody off-LAN is
affected and a refresh never waits for the probes. -
Protocol: the LAN address rides along, backwards compatible both ways.
MsgMasterAnnouncegained a trailinguint32 lanIpv4(network order, 0 = unknown),
andMSG_MASTER_LIST_RESPgained an optional tail after the entries:
uint16 count, count × (uint16 port, uint32 lanIpv4). An older server announces 0, an
older master drops the field, an older launcher stops after the last entry, and a new
launcher talking to an old master finds no tail and stays on the relay. Nothing to
migrate. -
Guard: the fleet could finally reach its own advertised size. The servers advertise
2000 players, but the host's nft guard accepted only 3000 pps on 7777 (≈150 players at
20 ticks/s) and 2000 pps on 7781–7784 — a full lobby would have been dropped at the
socket, silently. Raised:Port before after 7777 3000/s, burst 6000 20000/s, burst 40000 7781–7784 2000/s, burst 4000 8000/s, burst 16000 7800 1500/s, burst 3000 5000/s, burst 10000 -
Guard: reloading no longer duplicates every rule.
nft -fappends to an existing
table, so each reload used to stack another copy of every rule; the table is now
destroyed first, so one table means one rule. -
Tunnel: an idle mapping survives an alt-tab. UDP conntrack lifetimes went from
30/120 sto120/300 son both ends. The relay is the only place the public port is
translated and the home is the only place the tunnel peer lives; an entry that expired
during a quiet minute dropped the next packet while ENet still believed the peer was
connected. -
Tunnel: recovery from a relay reboot is ~1 min instead of up to 2. A watchdog timer
on the home restartswg-quick@wg0once the handshake is 5 minutes stale, instead of
waiting for the next rekey.
Verification
net-tests 3590 checks, 0 failures — PASS
launcher -query refresh 5/5 rows rewritten to 192.168.0.213, 5 ms each
(3 of ~32 headless refreshes left one or two rows on the
relay; the probe is retried once and the next refresh
switches them — a miss never leaves a row broken, it stays
on the relay)
launcher -query probe 104.251.218.227:7777 → 157 / 125 ms
192.168.0.213:7777 → 5 / 5 ms
fleet 6 listening sockets (7777, 7781-7784, 7800), unit active
nft guard one table; 7777 at 20000/s
wg0-watchdog.timer active on the home host
relay → home, 180 s 0 % loss, min 54.3 / p50 57.9 / p95 68.9 / max 256 ms
The house uplink has a ~40 ms floor to anything off-LAN (2 ms to its own gateway), so
this is not a relay tuning problem: any relayed player pays roughly twice that first
mile, wherever the relay sits. Staying off the relay when the server is local is the
only fix that does not move the servers.
Package
reLCS-launcher-v0.4.0-win64.zip
183,088,661 bytes · 174.6 MB · 37 files · root: reLCS-launcher/
sha256 0e8b53c06861035d43bede4e68c74003a10fcd39ce00eb7a6974ea457a962835
Self-contained as before: CEF runtime, EOSSDK, MSVC runtime and the public EAC payload are
all in the zip. Unzip over an existing launcher folder — launcher.ini, favorites.ini,
usernames.ini and eos.ini are left alone. The launcher has no self-updater, so
replacing the folder is the upgrade path.