What is port scanning?

It’s a method for determining which open ports and services are accessible on a given host. Port scanning is a technique used by hackers to gather information for harmful reasons.