Forum Moderators: coopster
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!
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?