Skip to content

Instantly share code, notes, and snippets.

@neuthral
Created August 7, 2022 18:08
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 neuthral/a0824b0a0a5520eee136bc9dc1295237 to your computer and use it in GitHub Desktop.
Save neuthral/a0824b0a0a5520eee136bc9dc1295237 to your computer and use it in GitHub Desktop.
NetCat test UDP ports

To test if udp port is responding, use netcat.

An example from the man page:

nc -v -u -z -w 3 example.host 20-30

Send UDP packets to ports 20-30 of example.host, and report which ones did not respond with an ICMP packet after three seconds. Of course, if a firewall is DROPing, which is normally the case when dealing with internet-faced gateways, you won't receive an ICMP response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment