Skip to content

Instantly share code, notes, and snippets.

@snambi
Last active February 3, 2024 13:55
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save snambi/a9684509de9c1c7635f9bbb5996b3144 to your computer and use it in GitHub Desktop.
Save snambi/a9684509de9c1c7635f9bbb5996b3144 to your computer and use it in GitHub Desktop.
# create an UDP server using nc on port 11090
nc -ul 11090
# check whether an UDP server is listening on 11190
nc -vz -u <hostname> 11090
# send a packet to the UDP server
echo -n "hello" | nc -4u -w1 <hostname> 1118
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment