Close specific connection

I have a chatserver and want to make a kick command for the admin. I
know that it’s possible to use “client.close” , but that just closes the
active client (in this case, the admin). Now I want to close the
connection of another client. Is it possible to use an IP address or
something else to close a specific client connection? Something like:

client2 = somethinglikeanaddress

I am not aware of any generic mechanism to find connections based on IP.
If you are using TCP you only need to close the socket for the specific
connection. You surely must be holding on to the Socket instance -
otherwise you would not be able to receive messages, would you? Or are
you using UDP?

Hi, how do you know which client you want to close?