To Scan for hosts that are UP on a network/ip range, run
nmap -sP 192.168.1.1-255
To see all Open Ports on a computer, run
nmap IP-OF-COMPUTER-TO-SCAN
To Scan for hosts that are UP on a network/ip range, run
nmap -sP 192.168.1.1-255
To see all Open Ports on a computer, run
nmap IP-OF-COMPUTER-TO-SCAN