Thursday, August 18, 2011

Create chat server using nc.

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 ( 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 3333
                                Now exchange messages by typing at prompt.