LANLock
by technicfan
With LANLock, a host can limit who joins a LAN world by keeping a whitelist of player names or UUIDs, the same kind of check a dedicated server applies.
What it does
LANLock adds a whitelist to worlds opened to LAN, so a host can allow only chosen players to connect. Each whitelisted player is stored by name and UUID, and the UUID is what the mod checks when someone connects. Names are resolved to UUIDs in the background, so a name can be added without the player being online. A world opened to the public with e4mc is covered as well, since the mod was written against e4mc 5.4.0 and later.
The mod runs on client and server, so the host and every player who connects need it installed. Its options cover turning the whitelist off entirely, and switching the check from UUIDs to names, which is useful for testing. The same settings are reachable through the client-side command lanlock. Fabric API is required, and Cloth Config API and Mod Menu are optional; with Mod Menu and Cloth Config present, a configuration screen is available from the mod list. The mod is released under the MIT License and is open source, with files for 1.19.2 – 26.3 on Fabric and Quilt.
Key features
Whitelist for LAN worlds
Only whitelisted players can join a world opened to LAN, mirroring the whitelist of a dedicated server.
UUID-based checks
Each entry stores a player's name and UUID, and the connection check compares the UUID of the joining player.
Background name lookup
Names added to the list are resolved to UUIDs asynchronously, so adding a player does not stall the game.
Whitelist toggle and name mode
The whitelist can be switched off entirely, and the check can use names instead of UUIDs for testing.
Configuration screen
With Mod Menu and Cloth Config installed, the same options open in a configuration screen.
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
1.19.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Optional 2
How it compares
LAN Whitelist is a Fabric mod for 1.20.2 – 1.21.10 that also runs on client and server, under the MIT License and open source. Simple Whitelist works only on Fabric for 1.18 – 26.2 and is server-side only, so players join without installing it. LAN Properties covers a wider set of loaders, including Forge, NeoForge and Quilt, for 1.12 – 1.21.8, and is also client and server with the Apache License 2.0.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| LANLock | Fabric and Quilt | 1.19.2 – 26.3 | Client and server | 2026-09-15 |
| LAN Whitelist | Fabric | 1.20.2 – 1.21.10 | Client and server | 2025-10-18 |
| Simple Whitelist | Fabric | 1.18 – 26.2 | Server-side only | 2026-07-26 |
| LAN Properties | Fabric, Forge, NeoForge, Quilt, Legacy Fabric and Ornithe | 1.12 – 1.21.8 | Client and server | 2026-02-10 |
Questions
Does LANLock need Fabric API?
Do both sides need LANLock?
Are Cloth Config API and Mod Menu needed?
Which game versions does LANLock cover?
In the catalog
LANLock is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 8,071 mods support Minecraft 26.3.
More from technicfan
Similar mods
What the author says
Note: This is not needed for e4mc 5.4.0+ as they implemented a whitelist there A few days ago, I stumbled across LANGuard, a mod that achieves the same thing as this one and also contributed to it. As this was my first ever contact with Java and Minecraft Mod Development, I started to work on a new PR but soon…
Official listing
- Modrinth page
- modrinth.com/mod/lanlock
- Owner
- technicfan
- Published
- 2025-06-03
- Updated on Modrinth
- 2026-09-15
- Facts verified
- 2026-10-15
