HomeJavaModsUsernameIpLock
UsernameIpLock
ModsJava

UsernameIpLock

by notwinterdust · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.11 · Fabric⬇ Download for 1.21.9–1.21.10 · Fabric⬇ Download for 1.21–1.21.8 · Fabric⬇ Download for 1.21–1.21.11 · Spigot
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

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.

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)
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more