
UsernameIpLock
Just a server rule that links a username to an IP address
About this Mod
IpLock
A server-side Fabric mod that prevents account takeovers on offline-mode Minecraft servers by binding each username to the IP address it first joined from.
How it works
When a player joins for the first time, their username is permanently bound to their IP address. If the same username later connects from a different IP, that IP is immediately banned and the connection is rejected. This makes it effectively impossible to impersonate an existing player from a different machine.
- First join — username is bound to the connecting IP, player joins normally.
- Same IP — player joins normally.
- Different IP — connection is rejected and the new IP is banned.
Data is stored in iplock/bindings.json and iplock/bans.json inside the server's run directory.
Commands
All commands require operator level 3 (admin).
| Command | Description |
|---|---|
/iplock list |
Show all username → IP bindings |
/iplock bans |
Show all banned IPs and which username they tried to use |
/iplock unban <ip> |
Remove an IP from the ban list |
/iplock reset <username> |
Delete a username's IP binding (allows them to re-bind from a new IP) |
Available Versions
How to Install UsernameIpLock 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.11).
Install Mod
Open the mod browser in the dashboard and search for "UsernameIpLock". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.11, 1.21.10, 1.21.9 (+9 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
UsernameIpLock 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.11). You can switch loaders with one click in the panel.
Is UsernameIpLock compatible with fabric and spigot?
UsernameIpLock officially supports fabric, spigot for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with UsernameIpLock – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if UsernameIpLock 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 UsernameIpLock with just one click on your server.
Details
- License
- Creative Commons Attribution No Derivatives 4.0 International
- Server-side
- Required