Skip to content

Instantly share code, notes, and snippets.

@chriha
Created June 26, 2019 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriha/0b9d6f289f3bb6c5745f063fb0902436 to your computer and use it in GitHub Desktop.
Save chriha/0b9d6f289f3bb6c5745f063fb0902436 to your computer and use it in GitHub Desktop.
socat - UDP4-DATAGRAM:192.168.30.255:61111,bind=:61111,ip-add-membership=192.168.30.255:eth0
socat - UDP4-DATAGRAM:192.168.30.0:61111,sp=61111,broadcast,range=192.168.30.0/24
ncat -i 5 -m 1 -u -l 0.0.0.0 61111 2> /dev/null
ncat -v -u -l 0.0.0.0 61111
echo '{ "fubar": true, "test": "lorem ipsum" }' | ncat -v --send-only -u 192.168.30.255 61111
nc -uklvv -w 1 0.0.0.0 61111
echo '{ "fubar": true, "test": "lorem ipsum" }' | ncat -u 192.168.30.255 61111
socat -v PIPE udp-recvfrom:61111,fork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment