The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

How to Do a UDP Ping in Linux

Posted by jpluimers on 2026/01/07

Often connections are TCP based, but sometimes UDP is all you have to test with, so I was quite surprised that testing that was quite forward. The solutions by [Wayback/Archive] How to Do a UDP Ping in Linux works on any platform where you can have nmap or netcat on installed (which by now is almost all platforms including Windows):

  • For example, I’ve used UDP port 161 of the host at itsfoss.com:
    sudo nmap -sU -p 161 itsfoss.com
  • I’ll be pinging itsfoss.com at UDP port 161 to check for listening ports only:
    netcat -v -u -z itsfoss.com 161

This makes it really easy to check if DNS port 53 or WireGuard default port 51820 are up.

Note :

–jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.