9 Unfortunately nc is not a unique name for a single tool. To find out which nc you have, look at the first line of output from nc -h. To send a single UDP packet and exit immediately, use the appropriate arguments for your specific nc. GNU nc -uc localhost 8000 <<
https://stackoverflow.com/questions/9696129/how-to-send-only-one-udp-packet-with-netcat