An easy way to send UDP packets in Linux

Published 26 May 2015 under software, udp

Bash gives us a very simple way of sending a UDP packet to an IP address and port:

echo "This is my data" > /dev/udp/

This example will send a UDP packet containing 'This is my data' to localhost on port 3000.


blog comments powered by Disqus