Ban IP Targets on a Server
The /ban-ip command is a server administration tool in Minecraft Java Edition. It lets admins block a specified target with an optional custom reason message.
Server moderators with permission level 3 use this command to enforce rules and manage access. This command has been available since at least Java Edition 1.13 right up to version 26.3.
/ban-ip <target> [<reason>]/ban-ip <target> [<reason>]| Argument | Type | What it means |
|---|---|---|
<target> | text | A word or piece of text identifying the target you want to ban. |
<reason> | message | Free text explaining the ban, which may include target selectors that get replaced by names. |
/ban-ip 192.168.1.1Bans the target 192.168.1.1 without giving a specific reason.
/ban-ip GriefPlayerBans the text target GriefPlayer with no extra message.
/ban-ip 10.0.0.45 Breaking server rulesBans the target 10.0.0.45 and sets a plain text reason.
/ban-ip BadActor Spamming the chat repeatedlyBans the target BadActor with a clear explanation of the offense.
/ban-ip 172.16.0.9 Caught griefing near @pBans 172.16.0.9 and replaces the @p selector in the reason with the nearest player's name.
/ban-ip RuleBreaker Banned in front of @aBans RuleBreaker and inserts the names of all online players into the reason text using @a.
/ban-ip 203.0.113.5 Reported by @r for cheatingBans 203.0.113.5 and puts a random player's name into the message using the @r selector.
Measured from the game files of every Java release from 1.13 to 26.3.
Minecraft Bedrock Edition does not have a command with the name /ban-ip, as it is only available in Java Edition.
You need permission level 3, which is the Server admin level, to run the /ban-ip command.
No, the <reason> argument is inside square brackets in the syntax, which means it is optional.
Yes, the reason argument is a message type that allows selectors, which the game replaces with the matching names.
/ban/banlist/datapack/deop/fetchprofile/kick/list/op/pardon/pardon-ip/publish/reload/save-all/save-off/save-on/setidletimeout