A simple sample for the nmap TCP/IP port scan tool (Linux only, I think)
nmap xxx.xxx.xxx.xxx -p1-31337 -P0 -v -sS
The above sets up a scan of ports 1 through 31337. There are more TCP/IP ports above that...
-----
ping scan (to find machines/computers) on subnet: nmap -sP 192.168.0.0/24
scan 10000 common ports: nmap 192.168.0.0/24
http://bencane.com/2013/02/25/10-nmap-commands-every-sysadmin-should-know/
tags: scan, ports, nmap,