

LANProtect
There're many mods available that allow you to expose your LAN Server to the Internet, allowing those not connected to the same network can join your world. However, there are risks of malicious players joining the world, which can cause a headache. This mod aims to prevent unauthorized players from joining LAN games when using those mods.
How do I use it?
When a player joins your world, it will be blocked, You will then be able to allow that player's connection or block it. If it's allowed, that player can reconnect and be able to play with you. On the other hand, that player will not be able to connect to your world.
Be notice that the list will be cleared when you leave the world, meaning you will have to re-whitelist those players when you play on it again.
Version
Currently, this mod supports 1.21.5. However, I'm planning on supporting some older versions in the near future.
If you have any suggestion, you can create an issue or pull a request on my github repo and I'll hopefully implement them.
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.5
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as LANProtect-1.0-SNAPSHOT.jar — drop this file into the mods folder
- Download size: 238 KB
- Download link checked 10 Sept 2026 — working
These come from our own check of the pack file, not from the source page.