netcat mac netcat code example
Example 1: macos netcat start listening
$ netcat -ulzp 8125
Example 2: macos netcat write message
echo "message" | netcat -nuc 127.0.0.1 8125
$ netcat -ulzp 8125
echo "message" | netcat -nuc 127.0.0.1 8125