Playing with the netcat chat
Posted: 14 Nov 2012, 11:17
Netcat is pretty much a a Swiss Army knife of networks, and can be used for a lot.
This includes a Command line chat in a terminal.
So I googled and got tips how to do this all over the place....and it did not work.
Most places wanted me to do a.
6666 is an example of a portnumber you can pick another one.
So I started that on my Mandriva box and went to an Arch computer and entered:
And as I said it did not work
So I connected to my Mandriva box via SSH and altered the command like this:
Then I opened another terminal on my Archbox and entered
Where 192.168.0.3 is the IP of the Mandriva box
Now the both terminals were in ready to write/receive mode and I wrote Smalahove (the first thing any Berserk can think of) and oh wonder it immediately poped up in my Mandriva terminal.
Answering in the Mandriva terminal immediatly pooped up on my Arch terminal so the chat was working to perfection.
To stop it, just hit CTRL+C
How can this be practical you say?
I dunno
I did say I was playing.....
But just maybe there will come tips later that will make you see the light - who knows....
This includes a Command line chat in a terminal.
So I googled and got tips how to do this all over the place....and it did not work.
Most places wanted me to do a.
Code: Select all
netcat -l -p 6666So I started that on my Mandriva box and went to an Arch computer and entered:
Code: Select all
nc <IP_TO_THE_MANDRIVABOX> 6666And as I said it did not work
So I connected to my Mandriva box via SSH and altered the command like this:
Code: Select all
nc -l 6666Then I opened another terminal on my Archbox and entered
Code: Select all
nc 192.168.0.3 5555Now the both terminals were in ready to write/receive mode and I wrote Smalahove (the first thing any Berserk can think of) and oh wonder it immediately poped up in my Mandriva terminal.
Answering in the Mandriva terminal immediatly pooped up on my Arch terminal so the chat was working to perfection.

To stop it, just hit CTRL+C
How can this be practical you say?
I dunno
But just maybe there will come tips later that will make you see the light - who knows....
