Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@allquixotic
Last active December 1, 2021 02:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allquixotic/0b16bf81b0e04bceaa86dc816961f142 to your computer and use it in GitHub Desktop.
Save allquixotic/0b16bf81b0e04bceaa86dc816961f142 to your computer and use it in GitHub Desktop.
UDP network test

Tested with BSD NetCat, not nmap project's NCat!

CLIENT

IP=CHANGEME ; for ((i=1; i<=600;i++)); do echo "$i: Received at $(date '+%s')." | netcat -4unNw1 ${IP} 15384; done

SERVER

Ubuntu 20.04.3

echo "$(dig +short myip.opendns.com @resolver1.opendns.com)"; netcat -vulknp 15384

CentOS / RHEL 8.3

yum install -y netcat bind-utils
echo "$(dig +short myip.opendns.com @resolver1.opendns.com)"; netcat -vulkn 15384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment