How To Make Use Of The Ban-IP Command In Minecraft

· 2 min read
How To Make Use Of The Ban-IP Command In Minecraft

It is the rationale that the IP handle has been banned. The reason can be exhibited to the participant in the event that they attempt to connect to the server from the banned IP deal with.  Minecraft servers  will even be displayed in the server logs.


Examples


- Java


Instance in Java Version (Pc/Mac)


Here are some examples of methods to ban an IP deal with on a Minecraft server.


To ban an IP deal with with no reason offered:


To ban an IP handle with a purpose:


To ban the IP address of a player named TheNotWanted that's presently on-line (with no purpose supplied):


To ban the IP deal with of a player named TheNotWanted that's at the moment online with a motive:


The best way to Enter the Command


1. Open Server Console


To run a server command, the instructions range relying in your version of Minecraft:


- For Java Edition (Computer/Mac), open a server console. Use Command Prompt in Home windows or Terminal on a Mac.


2. Type the Command


We'll cover examples of how to make use of the /ban-ip command to add an IP handle to the server's blacklist utilizing an IP handle as properly as the name of a participant that's on-line.


Ban an IP using the IP Deal with


The easiest technique to ban an IP tackle is by specifying the IP address within the /ban-ip command.


For example, you may ban an IP tackle with the following command:


As soon as the command has been entered, the IP tackle 172.16.5.128 will be added to the server's blacklist and banned from the server. Any gamers (ie: TheNotWanted) which can be connected to the server with that IP tackle shall be immediately disconnected from the server with the following message:


Ban an IP Handle using a web-based Participant


If you realize the name of the participant that's at present online whose IP deal with you wish to ban, you possibly can enter the participant name within the command as a substitute.


For instance, you might ban an IP tackle utilizing the player identify with the next command:


In this example, now we have entered the player title TheNotWanted. Because the IP address for TheNotWanted is 172.16.5.128, this IP deal with can be banned and added to the blacklist (or ban listing). For this command to work, the participant Have to be online whenever you problem the /ban-ip command using a player title.


To enter the /ban-ip command in Minecraft, you could enter it as a server command (see below):


You need to see the message "Banned IP tackle 172.16.5.128 belonging to TheNotWanted" appear within the server console.


Now any gamers which can be related to the server with that IP handle of 172.16.5.128 will be immediately disconnected from the server with the following message:


In this example, the player named TheNotWanted will see the message "Connection Misplaced. You may have been IP banned." in the sport window.