2. After running the cmd command, you can open the computer administrator's cmd command operation box. Checking the computer port is simple, just run a command.
Check the computer port number command: netstat -na (for specific usage, type netstat -na in the cmd command box and press enter to run), as shown in the figure below.
Port status monitoring means that you are currently in listening state, establishing means that you have established a connection and are in a communication state, TIME_WAIT means that you have ended your access, and CLOSE_WAIT means that you are waiting for a local user's connection interruption request.
Computer ports can be divided into three categories: well-known ports, registered ports and dynamic and/or dedicated ports.
Recognized ports: from 0 to 1023, which are tightly bound to some services. Usually, the communication of these ports clearly indicates the protocol of a certain service. For example, 80 ports have always been HTTP communication and so on.
Registration ports: from 1024 to 49 15 1. They are loosely bound to some services. In other words, many services are bound to these ports, and these ports are also used for many other purposes. For example, many systems handle a dynamic port of about 1024.
Dynamic and/or dedicated ports: from 49 152 to 65535. Theoretically, these ports should not be assigned to services. In fact, machines usually allocate dynamic ports from 1024. But there are exceptions: SUN's RPC port starts at 32768.