Forum Moderators: coopster

Message Too Old, No Replies

Need Help Creaing a Script that can Ping a UDP Port

         

wfernley

8:49 pm on Aug 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey everyone,

I was curious if anyone can help me create a script that will ping a UDP port on a PC. I was able to create a script that can ping a TCP port like 3306 (MySQL) but the program I am having to ping is using UDP. I want to add this script to my website.

Does anyone know if this is possible and how to do it?

Thanks!

webdoctor

12:46 pm on Aug 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ping a UDP port on a PC

FWIW, 'ping' isn't really the right word to use here - technically speaking, if you ping a host you're sending an ICMP echo request packet, and you aren't directing it at any particular port.

I was able to create a script that can ping a TCP port

Do you mean "make a connection (attempt) on a TCP port"? UDP is a stateless protocol (unlike TCP) so there isn't really a 'connection'.

Perhaps the best place to start would be the documentation for nmap [insecure.org] which has the ability to perform UDP scans?