Netcat is a versatile utility for working with TCP or UDP data. More information: https://nmap.org/ncat.
nc -l {{port}}
nc {{ip_address}} {{port}}
nc -w {{timeout_in_seconds}} {{ipaddress}} {{port}}
nc -l {{port}} < {{file}}
nc {{ip_address}} {{port}} > {{file}}
nc -k -l {{port}}
nc -q {{timeout}} {{ip_address}}
nc -v -z {{ip_address}} {{port}}
nc -l {{local_port}} | nc {{hostname}} {{remote_port}}