August 2025
Intermediate to advanced
272 pages
6h 14m
English
When prototyping, it’s common to do interactive manual testing early on—sometimes even before writing any automated tests. Luckily, most operating systems ship with great tools for working with network programs. In our case, we’ll use netcat[25] (often used as nc), a widely known tool from the 1990s that should be available on most Unix-based and Windows systems. It’s a little program that lets you read from and write to TCP (or UDP) connections. First things first, let’s start our shiny new echo server.
| | > mix run --no-halt |
| | 19:01:05.073 [info] Started TCP server on port 4000 |
Our server is listening for connections on the address localhost and port 4000. Now we’re ready to test this out with netcat. The easiest ...
Read now
Unlock full access