How To Use The Ban-IP Command In Minecraft

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

It is the reason that the IP deal with has been banned. The explanation can be exhibited to the player in the event that they try to connect to the server from the banned IP address. The reason will also be displayed in the server logs.


Examples


- Java


Instance in Java Version (Pc/Mac)


Here are some examples of how you can ban an IP handle on a Minecraft server.


To ban an IP tackle with no purpose provided:


To ban an IP deal with with a purpose:


To ban the IP address of a participant named TheNotWanted that is currently on-line (with no cause supplied):


To ban the IP address of a participant named TheNotWanted that's at present on-line with a motive:


The right way to Enter the Command


1. Open Server Console


To run a server command, the directions vary depending on your version of Minecraft:


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


2. Kind the Command


We are going to cowl examples of how to make use of the /ban-ip command to add an IP deal with to the server's blacklist using an IP tackle as effectively because the name of a participant that's on-line.


Ban an IP utilizing the IP Handle


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


For instance, you may ban an IP address with the next command:


Once the command has been entered, the IP address 172.16.5.128 will be added to the server's blacklist and banned from the server. Any players (ie: TheNotWanted) which might be connected to the server with that IP deal with will be immediately disconnected from the server with the next message:


Ban an IP Address using a web based Player


If you realize the title of the player that's at the moment online whose IP deal with you wish to ban, you can enter the participant name in the command as an alternative.


For instance, you possibly can ban an IP tackle utilizing the player name with the next command:


In this instance, we have now entered the player identify TheNotWanted. For the reason that IP handle for TheNotWanted is 172.16.5.128, this IP deal with will probably be banned and added to the blacklist (or ban list). For this command to work, the player Should be online while you situation the /ban-ip command using a participant name.


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


It's best to see the message "Banned IP deal with 172.16.5.128 belonging to TheNotWanted" seem within the server console. MINECRAFT PRISON SERVERS


Now any gamers which are connected to the server with that IP handle of 172.16.5.128 will likely be instantly disconnected from the server with the next message:


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