A port scan is an attempt to gain access to a computer by searching for open ports.