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


It is the rationale that the IP tackle has been banned. The rationale will likely be exhibited to the participant in the event that they attempt to connect with the server from the banned IP deal with. The reason will also be displayed in the server logs.


Examples


- Java


Example in Java Edition (Computer/Mac)


Listed here are some examples of the way to ban an IP deal with on a Minecraft server.


To ban an IP address with no motive provided:


To ban an IP tackle with a purpose:


To ban the IP address of a player named TheNotWanted that's currently online (with no cause supplied):


To ban the IP address of a participant named TheNotWanted that's currently online with a purpose:


Methods to Enter the Command


1. Open Server Console


To run a server command, the instructions range relying on your model of Minecraft:


- For Java Edition (Pc/Mac), open a server console. UseMinecraft gamemodesin Windows or Terminal on a Mac.


2. Sort the Command


We are going to cover examples of how to use the /ban-ip command to add an IP tackle to the server's blacklist using an IP handle as effectively because the identify of a participant that's online.


Ban an IP using the IP Tackle


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


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


As soon as the command has been entered, the IP handle 172.16.5.128 will likely 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 deal with shall be immediately disconnected from the server with the following message:


Ban an IP Deal with using a web-based Participant


If you already know the identify of the player that is at the moment online whose IP tackle you want to ban, you possibly can enter the player identify in the command instead.


For example, you may ban an IP deal with using the player name with the next command:


In this instance, we now have entered the participant identify TheNotWanted. For the reason that IP address for TheNotWanted is 172.16.5.128, this IP tackle shall be banned and added to the blacklist (or ban listing). For this command to work, the participant Must be online when you difficulty the /ban-ip command using a participant name.


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


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


Now any players that are connected to the server with that IP deal with of 172.16.5.128 can be immediately disconnected from the server with the next message:


In this example, the participant named TheNotWanted will see the message "Connection Lost. You've gotten been IP banned." in the game window.