什么是计算机端口(What is the computer port)
什么是计算机端口(What is the computer port)
Port concepts for computers and networks
In the network technology, port (Port) generally have two meanings: one is the physical meaning of the port, for example, ADSL Modem, hubs, switches, routers and other network devices used to connect the interface, such as the RJ-45 port, SC port and so on. Two is the logical sense of the port, usually refers to the TCP/IP protocol port, port number range from 0 to 65535, such as for browsing the 80 port of Web services, FTP services for the 21 port, and so on. What we are going to introduce here is port in logical sense.
View port
In Windows 2000/XP/Server 2003, to view ports, you can use the Netstat command:
Click "start to run" in turn, type "CMD" and enter the carriage, open the command prompt window. At the command prompt, type netstat -a -n, and press the Enter key to see the port number and status of the TCP and UDP connections displayed in digital form.
Close / open port
In the various port before, here to introduce how to close / open ports in Windows, because by default, there are a lot of unsafe or not what port is open, such as Telnet services, FTP services 23 port 21 port, port 25 SMTP services and RPC services 135 port and so on. In order to ensure system security, we can close / open the port by the following method.
Close port
For example, in Windows 2000/XP, closing the 25 port of the SMTP service can do this: first, open the control panel, double-click the administrative tools, and then double-click the service". Then in the service window to find and double-click the Simple Mail Transfer Protocol (SMTP) service, click the "stop" button to stop the service, and then in the "startup type" select "disabled", then click "OK" button. In this case, shutting down the SMTP service is equivalent to shutting down the corresponding port.
Open port
If you want to open the port as long as the first in the "startup type" select "automatically", click "OK" button, then open the service