Language Selection

English French German Italian Portuguese Spanish

Having fun with netcat.

Filed under
HowTos

Netcat or nc in short can be aptly described as one of those two letter command-line tools that have all of legendary UNIX magic and power.

nc however is a new program and does not share the age of well known programs like cat or dd. However its power and versatility make one think why no one came up with this before.

Past is past. Let us worry about the future now. The future is VoIP, multimedia streaming, video on demand...but we are digressing. We are discussing netcat here.

Interestingly netcat is going to help us in future as the best way to debug future network protocols. Peer to peer networking is often touted as the wave of the future Internet and I shall talk about an interesting anecdote of how invaluable netcat proved to me whilst testing my peer topeer NAT traversal library.

It is not very likely you have used it. So let us start with few simple exams before we get on to nontrivial ones.

$nc -l -p 1234

Full Story.

More in Tux Machines

Video: Headless ARM9 SBC boots Linux in less than a second

Technologic has posted a video demo of its fast-booting headless PC/104-expandable SBC, which runs Debian on a PXA16x SoC and includes a Lattice FPGA. Read more

UBOS -- a new Linux distro for personal servers and IoT devices

UBOS is a new Linux distro that aims to make it 10x easier to run server-side apps for yourself, or for your family, on hardware you own. Why give your valuable data to Google or some other data overlord, if you can keep it under your own control? All you need is a spare (physical, virtual, or cloud) computer that can run Linux. UBOS automates much of the administration, so you can get on with life. Want to use ownCloud instead of Dropbox? Shaarli instead of delicious? An RSS reader or an Internet-of-Things app? UBOS makes installation and maintenance easy and quick.