
LANProtect
Prevents unauthorized players from joining LAN games when using mods that exposes server to the internet.
Screenshots


About this Mod
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.
Available Versions
How to Install LANProtect on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.5).
Install Mod
Open the mod browser in the dashboard and search for "LANProtect". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.5
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
LANProtect server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.5). You can switch loaders with one click in the panel.
Is LANProtect compatible with fabric?
LANProtect officially supports fabric for Minecraft 1.21.5. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with LANProtect – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if LANProtect consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install LANProtect with just one click on your server.