Quantcast
Channel: How to generate UDP packet - Super User
Viewing all articles
Browse latest Browse all 6

Answer by jamis for How to generate UDP packet

$
0
0

If you want to merely send one UDP packet with some specified data, as opposed to Satanicpuppy's answer which continuously sends random data, you can do:

echo "foo" | nc -w1 -u 111.22.333.4 20000

Viewing all articles
Browse latest Browse all 6