For Mac users with port scanning needs, a port scanning program is built into the macOS network utility, which means that if there is no advanced requirement, you do not need to install additional third-party port scanning tools (such as nmap) To perform a port scan.
The built-in port scanning tool of macOS comes with a graphical interface, which is very friendly and easy to use.
How to open the port scanning tool
The port scanning function in macOS is built into the network utility. Since this tool is not used very often, the newer version of macOS has hidden the network utility from the application. You cannot directly find its application from the Finder icon.
But this does not mean that the network usage program has been deleted. Its location is in /System/Library/CoreServices/Applications/.
Of course, opening this address through the file path is very troublesome. The easiest way to open the web utility is to use Spotlight.
That’s right, the search tool built into macOS.
Press Command + Space to bring up Spotlight
Then search for "Network Utility" or "Network Utility".