I need a code example to disconnect a player via ip, port
I searched a lot with TCPClient and TCPListener but couldn't success to disconnect specific IP.
Can someone share an example ?
I need a code example to disconnect a player via ip, port
I searched a lot with TCPClient and TCPListener but couldn't success to disconnect specific IP.
Can someone share an example ?
Client side dont have disconnect function GameServer get dc from function CloseClient() gObjDel() closesocket()
record
possible flood actions to non protected server because of that that send many packages and get dc all
for only itself disconnect need write new function or send to gs not existing package
I guess muguard firewall is a proxy or something like that so it doesn't necessarily close the connection in GS but rather block the original client from accessing the GS which cause the disconnect (timeout).
If you want to disconnect a client from GS using an external application I think you should study the protocol of JoinServer, as I remember there was a function which can disconnect an user from GS.
Well it's not bad having an advice for anti-ddos. Just a day ago I couldnt decide one in a anti-ddos topic. There were many. And some of them kills my resources. This one Masteru suggested looks nice. Started to use and thanks.
Now about my situation. I am good at C# and I was writing my own anti-cheat in server side. I am checking current log files but if I do it every minute or every 10 seconds it kills my resources. That's why I'm making a player report system on MVC project related with my own application now. When a player reports a speed hacker it will check logs and autoban acc and ip. Ofc we have a problem to disconnect cheater from server automatically.
Till I find a solution in my project codebehind, I have alternative way to disconnect him.
1. acc ban
2. add ip to muguard black list
3. kill process firewall
4. status check runs muguard firewall back.
and bb to cheater in a minute checking logs and disconnect from game till he change his ip and register new acc.
u better code a function to DC players Pc hardware Id instead