Sending and receiving TCP/UDP packets using Netcat
· 2 min read
This story will show you how to use Netcat to send and receive TCP/UDP packets. We'll focus on a specific example... we'll simulate a Statsd client/server.
What is Netcat? Netcat is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol. Designed to be a reliable "back-end" tool, Netcat can be used directly with other programs and scripts to send files from a client to a server and back. At the same time, it is a feature-rich network debugging and exploration tool that can specify the network parameters while also establishing a connection to a remote host via a tunnel.