Sometime we need to do chat to temporarily between two host. Chat server can created using nc command. For example you are on machine A (192.168.1.1) and issued following command
root# nc -l 3333
That command will create a tcp port on 3333 on machine A.
Now from machine B type following command to connect to port 3333 on machine A
root# nc 192.168.1.1 3333
Now exchange messages by typing at prompt.
root# nc -l 3333
That command will create a tcp port on 3333 on machine A.
Now from machine B type following command to connect to port 3333 on machine A
root# nc 192.168.1.1 3333
Now exchange messages by typing at prompt.