What is Port scanning?

Checking which network ports on a system accept connections, to learn which services it offers. Admins use it for inventory; testers use it first in an authorised test; defenders see it as many probes from one address.

Every network service listens on a numbered port, such as 22 for SSH or 443 for HTTPS. A port scanner such as Nmap tries many ports on one or more hosts and reports which respond, often also identifying the program and version behind each. Administrators scan their own networks to keep an inventory and spot services that should not be there. Testers do it at the start of an authorised engagement to map the scope. Defenders recognise it in firewall and intrusion detection logs as one source touching many ports or hosts in a short time. Scanning networks you do not own or have no permission to test can cause trouble with the network's owner, so get written authorisation first.

Source: NIST CSRC Glossary (NIST SP 800-82r3).

Practice it in a lab

Free, hands-on labs that teach Port scanning.

Related terms

All glossary terms

Related