Handle multiple clients

Hi all! I've seen on the learning page some examples of client/server chat. From what I've understand when I use server.write it writes to all the clients connected at that time to the server. My question is there's a way to answer just to one specific client? I mean.. There's a way to use client.write specifing a sort of id?

My question is there’s a way to answer just to one specific client?

How would you know which client to respond to?

well.. this is my question.. how can I identify a client? can I have its ip, maybe?

can I have its ip, maybe?

There are ways.

Perhaps what you need to do is to define what you are trying to accomplish, rather than how you think you could/should do it.