I'm writing a java Server(multithreaded)/Client chat for educational purposes.

What is the best way to list all the connections (ip) from Server side?

My Java knowledge is pretty basic :)

Thank you