Sending UDP messages using Port

I was trying to follow along with how statix sent messages to port 8135.
If I set up a listener on the host OS in some other terminal window, e.g. using netcat:

nc -n -v -u -l 127.0.0.1 -p 8125

How can I send UDP messages to port 8125 so this listener will receive them? I confess that when the Port module linked over to the Erlang docs, I got a bit lost.

Does anyone have pointers or examples? Many thanks!

External processes spawn as Ports communicate over stdin. To use UDP to communicate, you’ll need to open a socket using gen_udp: Erlang -- gen_udp and send messages over the socket.

Yeah, I landed on that page eventually, but I’m afraid I got lost in the Erlang docs – my Erlang-foo is very weak.