nc — arbitrary TCP and UDP connections and listens
The nc
(or netcat
) utility is used for just about
anything under the sun involving TCP, UDP, or
UNIX-domain sockets. It can open TCP connections,
send UDP packets, listen on arbitrary TCP and UDP
ports, do port scanning, and deal with both IPv4
and IPv6.