-l
: listen for incoming connections
-p
: specify the local port to use for the connection
-v
: enables verbose output, which can be helpful when debugging
-n
: disables DNS resolution, which can speed up connections.
-z
: scan for open ports, without actually estavlishing a connection.
-u
: enables UDP connections instead of TCP.
-
Verify the identity of the remote host before connecting to it (check the host name, ip address, is it the correct machine?)
-
Be careful when using Netcat to scan for open ports, it can trigger security alerts.
-
When transferring files, make sure to use encrypting to protect the data in transit. Netcat doesn't provide encryption by default so you many need to use additional tools like SSH or SSL.