How to test UDP Connectivity

Sometimes we need to check the UDP Connectivity?  There are few free tools available in the net to test the UDP Connectivity but here we are going to describe about a utility called nmap, by which we will test the UDP Connectivity.

How would you be able to test and probe a port that listens for UDP connections? Or  how would you test a listening UDP port?

How to test a listening UDP port

If you have managed to create a daemonized service that opens port for UDP connections, here’s how to test that listening UDP port for UDP connections. Read on.

To test a listening UDP port, simply use nmap.

# nmap -p [port] -sU -P0 [host name | ip address]
# nmap -p 123 -sU -P0 example.com
# nmap -p 123 -sU -P0 123.123.123.123

From the command shown above, I am assuming that the host example.com is currently serving NTP service on UDP port 123.

Sample opened UDP port output:
~~~~~~~~~~~~~~~~~~~
Starting Nmap 4.52 ( http://insecure.org ) at 2008-04-29 10:56 WAT
Interesting ports on host.example.com (123.123.123.123):
PORT STATE SERVICE
123/udp open|filtered ntp
MAC Address: 00:02:A5:EC:00:8C (Compaq Computer)

Nmap done: 1 IP address (1 host up) scanned in 1.043 seconds
~~~~~~~~~~~~~~~~~~~

Not only you get to test and scan the UDP port, you also get the host’s current MAC address.

If you have a closed UDP port, you should be seeing similar lines as shown
~~~~~~~~~~~~~~~~~~~
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
123/udp closed ntp
~~~~~~~~~~~~~~~~~~~


16 Responses to “How to test UDP Connectivity”

  • palanisamy.m says:

    hi

  • Me says:

    This does not work.

    You can do it with a non-existent port on a remote host and it still comes back as filtered.

  • The only way to truly test if a UDP port is being filtered or blocked is if you have a server-side component on the “other side” of the device blocking you whereby you can try to send data back and forth to the server on a given UDP port.

    Microsoft has PortQry, but it’s more for techies. For a web based solution you can use firebind.com. It’s a server on the Internet with a corresponding Java client that allows a user to send UDP or TCP packets from their machine to the Firebind server over any of the 65535 UDP or TCP ports. If the data packets can be sent back and forth to the server successfully over the given UDP or TCP port, then the port isn’t being blocked.

  • Liju says:

    Perfect !!

    It’s works

  • m4biz says:

    I’m looking for a tool like “firebind” that is non web based but that I can install on a Trixbox/Centos server that has no GUI but only text mode interface.
    In fact I’d like to test outbound connection from this server machine to Internet from command promt.
    Any idea?
    Thanks in advance.

  • h4xp3t says:

    I’m surprised nobody here has mentioned netcat.

  • j says:

    netcat (nmap has a rewrite called ncat) has a udp option (-u).

  • As much as possible, make the deal a win-win situation for everyone.
    What we don’t know is what impact that would have had on their masterpieces ‘ but there’s no reason to believe it would have constrained them. Or that he hasn’t taken down his profile from the dating site yet after a few months seeing each
    other.

  • Melina says:

    It’s truly very complex in this full of activity life to listen news on TV, therefore I simply use world wide web for that purpose, and obtain the most recent news.

  • I really love your site.. Great colors & theme.
    Did you create this amazing site yourself?

    Please reply back as I’m looking to create my own personal site and want to find out where you got this from or just what the theme is named. Many thanks!

  • It’s perfect time to make some plans for the future and it is time to be happy. I have learn this put up and if I may just I desire to counsel you some attention-grabbing things or suggestions. Perhaps you could write subsequent articles referring to this article. I desire to read more things approximately it!

  • Vilma says:

    Link exchange is nothing else however it is just placing the
    other person’s web site link on your page at suitable place and other person will also do same in favor of you.

  • If some one wants expert view regarding running a blog after that i recommend him/her to pay a quick visit this blog, Keep up the fastidious job.

  • I have seen loads of useful issues on your web site about pcs. However, I have got the judgment that netbooks are still not quite powerful enough to be a sensible choice if you typically do things that require a lot of power, just like video touch-ups. But for web surfing, statement processing, and most other prevalent computer functions they are all right, provided you never mind the little screen size. Thank you for sharing your thinking.


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>