Skip to content

Instantly share code, notes, and snippets.

@snambi
Last active May 9, 2024 21:00
Show Gist options
  • 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