how i ban ip on conquer

02/23/2013 20:24 yosif#1
i need help to ban ip i dont want this ip join my game how i ban ip .
02/23/2013 21:06 pro4never#2
#reported

This section is for the official tq servers. A moderator will move this to the private server section.

Answer to your question: In your socket system when accepting new connections, check the IPAddress of the connection versus a collection of disallowed addresses/ranges and refuse their connection if they match.

Spoiler: This will require you to actually bother putting in some effort and learning basic programming.
02/24/2013 11:21 JohnHeatz#3
#Moved to the right section
02/24/2013 11:29 shadowman123#4
its Peice of cake ... just make text file .. this file should contains all Ips that u would like to ban .. then make File Reader and add all Ips in String List... and at Append Login make case

if (List.Contains(Ip of Logged in character)) Message = "Your IP was Banned From Entering the Server";
02/24/2013 17:44 derpingson#5
It would be a lot easier and much more stable if you use make an Sql table for it(of cours if your DB is sql)
02/24/2013 18:12 shadowman123#6
Quote:
Originally Posted by derpingson View Post
It would be a lot easier and much more stable if you use make an Sql table for it(of cours if your DB is sql)
Same Concept .. u will have to put them all in List then make search for logging Ip in this List string if its found then it wont allow him to Enter the server
02/24/2013 18:41 Super Aids#7
Quote:
Originally Posted by derpingson View Post
It would be a lot easier and much more stable if you use make an Sql table for it(of cours if your DB is sql)
It wouldn't make a difference. Nothing anything that you should care about though, because either way it will all be loaded and stored in some kind of collection where it's independent of your database.