/home /blog 08 Feb 2016 |

Chatting over lan with Linux

Communication within institutes is a pleasure with linux. Especially so since I just discovered this. The netcat or ncat program is needed (Both are interchangeable). On Ubuntu netcat is usually used and on Archlinux ncat is available. To receive communications run

ncat -l 8080
netcat -l 8080

This makes the netcat program listen at port 8080.
Now anyone on the same network as you can connect to you by:

ncat 8080
netcat 8080

That is assuming that your IP address is

Now, telling your peers that you will be listening at some port allows them to connect to you at any time that your ncat program is running. When you want to go away, simply stop your program.

You can broadcast too. Just get many people to connect to you.