30.01.2026

How to Install Ncat on Windows and Linux (Step-by-Step Guide)

What is Ncat (Netcat)?

Ncat is a powerful and flexible networking tool used for debugging, monitoring, and transferring data over TCP/IP connections. It is a modern replacement for traditional Netcat, developed and maintained as part of the Nmap Project.

Ncat supports encryption (SSL/TLS), IPv6, connection brokering, and port forwarding, making it suitable for both interactive command-line use and automation scripts. It is available on all major platforms, including Windows, Linux, and macOS, and is widely used by system administrators, DevOps engineers, and security specialists.

Install Ncat on Windows (via Nmap)

To install Ncat on Windows, you need to install the Nmap package, which includes Ncat as one of its components:

ncat -v

Checking example

To check ncat is really working, open two terminal windows.

ncat -l <any_port>
ncat -C localhost <choosen_port>

You can "chat" between the windows:

 

Install Ncat on Linux (Ubuntu example)

Setup process on Linux (Ubuntu 20.o4 as example is very simple. Just complete this instruction:

apt-get update
apt-get install -y nmap

Verify installation:

ncat -v

Using example the same - open two terminal windows and run these commands:

ncat -l 1234
ncat -C localhost 1234

Conclusion

In this article, we covered how to install and use Ncat on Windows and Linux, including verification and basic communication examples. As a modern replacement for traditional Netcat, Ncat offers additional security features, encryption, and cross-platform compatibility.

Whether you’re testing network connections, debugging services, or transferring data, Ncat remains a versatile and lightweight tool for system administrators and network engineers.

FAQ: Ncat Tool