DEV Community

Lang Sharpe
Lang Sharpe

Posted on

1 3

Using netcat as a test statsd server

Netcat will listen on a port and write what it receives to stdout.

nc -u -l -p 8125
# -u UDP
# -l Listen
# -p Port
Enter fullscreen mode Exit fullscreen mode

It only works for a single line/connection. (Other versions have an option to keep listening. However, I wasn’t able to find one that ran on MacOS).

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay