帮助中心 >  技术知识库 >  云服务器 >  服务器教程 >  使用MacOS自带网络工具检测服务器开放端口

使用MacOS自带网络工具检测服务器开放端口

2020-07-14 17:00:50 7895

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.

  1. 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".

7BFC4DA7-8FCF-48AC-BBD9-54D73F0A3FEE.png

This is a small tool of only 1.6M, but the function is very powerful.

2. Port scanning from macOS

The scanning method is very simple.

  •  Open the network utility

  •  Find the port scan option

  •  Enter the IP address or domain name to be scanned

You can see the open port of the target IP or domain name.

Here I scanned the opening status of 1.1.1.1 port, which can be said to be very detailed.

Screen Shot 2020-07-14 at 16.44.19.png

The built-in port scanning tool of macOS will mark the service names of the commonly used ports scanned after the scan is completed, which is very convenient.


matters needing attention

The built-in port scan of macOS can only scan one host IP at a time, and can not realize batch scanning of host segments. If there is a higher demand, it is recommended that you use nmap, a professional port scanning tool.

By default, the built-in port scanning tool of macOS will scan all ports (1-65536) of all target IPs, and you can adjust the range in the settings in the figure above.

The test results are for reference only, because the target IP may not be scanned after the firewall is turned on.

The special thing is that the latest big sur beta version does not have this tool.


In addition, this tool has many useful functions!

Screen Shot 2020-07-14 at 16.50.22.png

Screen Shot 2020-07-14 at 16.48.39.png

Screen Shot 2020-07-14 at 16.47.15.png

Screen Shot 2020-07-14 at 16.41.48.png

Screen Shot 2020-07-14 at 16.41.04.png

Screen Shot 2020-07-14 at 16.44.12.png



提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: