How to view the computer port number Use the command to view the computer port method

  

For computer enthusiasts, the computer port is also a knowledge that must be understood. By limiting or opening the computer port, computer security can be better improved. In particular, the webmaster friend often closes some ports that are not used in the server to better protect the server and prevent hackers. Today, we don't talk about the server, mainly teach you how to check the computer port, interested friends, may wish to understand.

The following is an example of Win7 viewing computer port. The other XP, Win8, and Win10 viewing port methods are the same.

1. First open the run command box, XP, Win7, Win10 system can be found directly in the start menu, or you can use the Win + R combination shortcut to quickly open (Win8 preferred method). After opening the run command box, enter the command after opening: cmd, press the Enter key or click the bottom of the "OK" to open, as shown below.

Second. After running the cmd command, you can open the cmd command operation box of the computer administrator. To view the computer port is very simple, just run a command.

View the computer port number command: netstat -na (specifically, in the cmd command box, type netstat -na, and then press the Enter key to run), as shown below.

The LISTENING in the port status represents the current listening state, ESTABLISHED represents the established connection, is in communication, TIME_WAIT represents the end of the access, CLOSE_WAIT represents waiting for the connection interruption request from the local user.

Computer ports can be divided into three categories: Well Known Ports, Registered Ports, and Dynamic and/or Private Ports.

Recognized ports: from 0 to 1023, they are tightly bound to some services. Usually the communication of these ports clearly indicates the protocol of a certain service. For example: port 80 is actually always HTTP communication, etc.;

Registration port: from 1024 to 49151. They are loosely tied to some services. This means that there are many services that are bound to these ports, and these ports are also used for many other purposes. For example, many systems handle dynamic ports starting around 1024.

Dynamic/or private port: from 49152 to 65535. In theory, these ports should not be assigned to services. In fact, machines typically allocate dynamic ports from 1024. But there are exceptions: SUN's RPC port starts at 32768.

The above is the command to view the computer port method, more port knowledge, please read: What is the port computer commonly used port knowledge.

Extended reading: How to close the computer port 2 ways to close the port method

Copyright © Windows knowledge All Rights Reserved