In the code development process, we often need to use some network commands, as follows:
(1) ipconfig command: Generally used to view our computer's IP address, gateway, subnet mask, DNS and other related information, such as:
Ipconfig-all
(2) Ping command: We are usually used to determine whether 2 or more than 2 machines between the network connectivity.
For example, this machine: ping 127.0.0.1
If you need to see the meaning of the ping command's parameters, just use the CMD control bar to enter the command ping/? To view the meaning of the command parameters, such as:
If you want to see what the parameters of any command mean, we just need to: command/? To see the use of the command. Such as:
(3) Netstat command: Check whether the local computer's TCP and UDP ports are listening
Netstat-a
(4) Telnet command: 1) Telnet provides Terminal Services to the remote machine, i.e. the local machine operates as a remote virtual terminal on a remote machine.
2) Check whether a port on the remote machine or on the local machine is open
If you want to listen to the Telnet protocol port on this machine, such as:
The above proof has not been opened, we need the "computer" in the right-click menu "Services", and then find the Telnet service, the Telnet service can be turned on.
When turned on, running the above command will reveal that the port is open and the following login information appears,
Common Port Description:
21 Ports: 21 ports are primarily used for FTP (file Transfer Protocol, document Transfer Protocol) services.
23 Port: 23 port is primarily used for Telnet (remote login) services and is a common logon and emulator on the Internet. 25 Ports: 25 ports are open for SMTP (Simple Mail Transfer Protocol, Easy message Transfer Protocol) servers, primarily for sending mail, and today most mail servers use the protocol.
53 Port: Port 53 is open for DNS (domain name server, nameserver) server, mainly used for domain name resolution, and DNS service is the most widely used in NT system.
67, 68 ports: 67, 68 ports are ports that are open for bootstrap Protocol Server (Bootstrapper Protocol Service side) and bootstrap Protocol client (Bootstrapper protocol clients) for BOOTP services respectively.
69 Port: TFTP is a simple File Transfer protocol developed by Cisco Corporation, similar to FTP.
79 Port: 79 port is open for the finger service, mainly used to query the remote host online users, operating system type and whether buffer overflow and other user details.
80 Ports: 80 ports are open for HTTP (Hypertext Transport Protocol, Hypertext Transfer Protocol), which is the most used protocol for surfing the Internet, primarily for protocols that transmit information on the WWW (World Wide Web) service.
99 Port: 99 port is used for a service called "Metagram Relay" (sub-countermeasure delay), the service is relatively rare, generally not used.
109, 110 Port: 109 port is open for POP2 (post Office Protocol Version 2, Post Offices Protocol 2) service, 110 port is open for POP3 (Mail Protocol 3) service, POP2, POP3 are mainly used to receive mail.
Port 111: Port 111 is a port that is open by the Sun's RPC (remote Procedure Call) service, primarily for internal process communication of different computers in a distributed system, and RPC is an important component in a variety of network services.
113 Ports: 113 ports are primarily used for Windows "Authentication Service" (authentication services).
119 Ports: 119 ports are open for "Network news Transfer Protocol" (Web newsgroup Transfer Protocol, or NNTP).
135 Ports: 135 ports are primarily used by RPC (remote Procedure call, Remoting) protocol and provide DCOM (distributed Component Object Model) services.
137 Ports: 137 ports are primarily used for the NetBIOS name Service (NetBIOS naming services).
139 Ports: 139 ports are provided for "NetBIOS Session service" and are primarily used to provide Windows file and printer sharing and Samba services in UNIX.
143 Port: 143 port is primarily used for "Internet Message Access Protocol" V2 (Internet Messaging Protocol, abbreviated as IMAP).
161 Ports: 161 ports are used for "Simple Network Management Protocol" (Simplified Web Management Protocol, referred to as SNMP).
443 Port: Port 43 is a web browsing port, primarily for HTTPS services, and is another HTTP that provides encryption and transmission over a secure port.
554 Port: 554 port is used by default for "real Time streaming Protocol" (live streaming protocol, or RTSP).
1024 Port: 1024 port is generally not fixed assigned to a service, the explanation in English is "Reserved" (reserved).
1080 Port: 1080 port is the port used by SOCKS Proxy service, and the WWW service used by everyone in the Internet is the Proxy service of HTTP protocol.
1755 Port: 1755 port is used by default for Microsoft Media Server (MS, MMS).
4000 Port: 4000 port is used for common use of QQ Chat tool, and then in detail is for the QQ client open port, QQ server port used is 8000.
5554 Port: On April 30 this year, a new worm-wave (Worm.sasser) is reported for the Microsoft LSASS Service, which can use TCP 5554 to open an FTP service that is primarily used for virus propagation.
5632 Port: 5632 Port is the port that is opened by the familiar remote control software pcanywhere.
8080 Port: 8080 port with 80 port, is used for WWW Proxy service, can implement Web port concept in network technology,
Ping and telnet and some cmd common port commands