In that case I believe that, didactic as this effort may have been
:-), you should really follow
merlyn's (brashly expressed) suggestion to use
nmap, a very versatile and solid tool for all manner of network examination tasks.
Makeshifts last the longest.