Minecraft /ban-ip command
Bans the address a player connects from; it also stops them joining with a new account.
Syntax
/ban-ip <target> [<reason>]
Parts in square brackets are optional, parts in angle brackets are required. You do not type the brackets: Put your own value in their place.
Arguments
| Argument | What it does |
|---|---|
| <target> | An IP address or the name of a player who is currently connected. |
Examples
/ban-ip 203.0.113.5 repeated violations
Blacklists the address.
Good to know
- It can also block innocent players on the same network, so use it carefully.
- Lifting it requires pardon-ip.
How do I run this command?
Press T in game to open chat (or press / directly), type the command and press Enter. While typing, Tab completes the options. This command counts as a cheat: It needs cheats enabled in a singleplayer world, and operator permission on a server (server admin (level 3)).
Related commands
🛡️ More Server management
Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.