The specific steps are as follows:
Click the Xiao Na search box in the lower left corner, and then enter the command cmd. The command prompt will be searched automatically.
Right-click Command Prompt and click Run as Administrator in the pop-up dialog box.
Enter "netstat–na", and then click Enter to see a list of all the ports open in the computer.
Server port:
With the development of computer network technology, the original physical interfaces (such as keyboard, mouse, network card, graphics card and other input and output interfaces) can no longer meet the requirements of network communication. As the standard protocol of network communication, TCP/IP protocol solves this communication problem. Integrating TCP/IP protocol into the kernel of the operating system is equivalent to introducing a new input/output interface technology into the operating system, because an application program interface called "Socket" is introduced into the TCP/IP protocol. With such interface technology, computers can communicate with any computer with Socket interface through software. Port is also called "socket interface" in computer programming.