My first tutorial, do not flame if it is bad.
Difficulty: 1/10
Description:
How to IP / address ban using Server.java
Files to be edited: server.java
Open server.javaSearch
Under that, you should see:Code:String connectingHost = s.getInetAddress().getHostName();
Code:if(clientListener != null) {
Then under that, you probably see something like:
After that if ( add:Code:if (connectingHost.startsWith("some.host.address.here") || connectingHost.startsWith("some.ip.address.here") ]
Replace ip/address with a user's IP or host address.Code:connectingHost.startsWith("ip/address") ||
You can find this by going to /your_servers_directory/characters/ then opening the user's .txt file.
Search or scroll until you find:
After that will be their host.Code:character-lastconnection =
Please rate this tutorial on a scale of [bad]1-5[good]
I worked as hard as I could.
Give feedback, and leave questions.



![[Tut] How to IP/address(host) ban via Server.java](http://ragezone.com/hyper728.png)

