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

LibreOffice 5.1 Officially Released with Redesigned User Interface, New Features

Today, February 10, The Document Foundation non-profit organization has proudly announced the release and immediate availability for download of the LibreOffice 5.1 open-source and cross-platform office suite for all supported platforms. Read more Also: LibreOffice 5.1: The premier open-source office suite just keeps getting better LibreOffice 5.1 Officially Released As The Best Open-Source Office Suite

Ubuntu 16.04 LTS Is Now Using the Latest Linux Kernel 4.4.1

The Ubuntu kernel team has upgraded the Linux kernel for Ubuntu 16.04 LTS (Xenial Xerus) to version 4.4.1 and is also tracking future updates for this branch. Read more

Putin's New Internet Czar Wants Apple and Google to Pay More Taxes

Microsoft, Google and other U.S. companies “reached the point of no return” when they complied with sanctions over Putin’s annexation of Crimea by halting all business with the peninsula, according to Klimenko. As a result, it’s “inevitable” Russia will switch state networks from Windows to an open-source system based on Linux, a move 22,000 municipal governments are prepared to make immediately, he said. Read more