Skip to content

Instantly share code, notes, and snippets.

@asnimansari
Forked from snambi/Listen on UDP using netcat
Created December 4, 2019 06:30
Show Gist options
  • Select an option

  • Save asnimansari/f8a758355908e72e297730a6e2ed1e82 to your computer and use it in GitHub Desktop.

Select an option

Save asnimansari/f8a758355908e72e297730a6e2ed1e82 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