how to chat in the given NETWORK

Hello,
I am working on interaction in the LAN. I am able to chat with multiple users in a given FEDORA system using write,wall. But they are limited to a single IP ADDRESS.

But now I want to conduct a chatting program where multiple users can chat who are at different IP addresses. Can you please tell me the command I can use to perform this. If possible can you please give me an example how to use them.

This is has nothing to do with shell scripting so please take care next time in which subboard you post it.

You can check for ytalk for example. Else you might want to setup an IRC server and then you and your friends should use IRC clients. Maybe there are other small implementations of chat programs. Maybe search the software repository of your Linux/Unix.