Forrest logo
back to the nc tool

nc:tldr:8297e

nc: Establish a TCP connection.
$ nc ${ip_address} ${port}
try on your machine

The command "nc" stands for netcat, which is a powerful command-line tool used for network testing and troubleshooting. It allows you to establish connections with other systems over different protocols, such as TCP and UDP.

In the given command, "${ip_address}" represents the IP address of the target system you want to connect to, and "${port}" represents the port number on which you want to establish the connection.

So, when you execute the command "nc ${ip_address} ${port}" in the terminal, it tries to establish a TCP or UDP connection with the specified IP address and port number.

For example, if you execute "nc 192.168.0.100 8080", it will try to establish a connection with the system at IP address 192.168.0.100 on port 8080.

Once the connection is established, netcat provides you with an interactive shell where you can send and receive data. It allows you to manually communicate with the remote system, making it useful for various network troubleshooting tasks or for directly interacting with network services.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nc tool