netstat -tunlp
Question 2: How to check the open ports of this machine? You can use the "netstat" command that comes with Windows to view the open ports of the system. In addition, its main parameters are "-a means to display all connection and detection ports, and -n means to display addresses and port numbers in digital format. Operation method: enter the command line and enter: netstat -an, and then many ports of the local open system will appear, in which: Active Connections refers to the current local connection state, Proto refers to the protocol name used for connection, and Local Address refers to the address of the local computer and the port number being used for connection. The forwarding address refers to the IP address of the remote computer connected to the port and its port number, and the status indicates the connection status of TCP. You can see that the listening port in the following lines is UDP protocol, so it has no status display. Finally, if we know the port number used by Trojan horse when we use the computer in the future, and find that this port number is open and it is located in listening state, then you can judge what Trojan horse has been hit, such as 7626, which is the default listening port of Glacier Trojan horse, and so on. There is no item in my command prompt: Foreing Address, because I have disabled it remotely through the registry. I hope I can correct my mistakes. Ok, bye!
Question 3: How to check the open ports in win7 system? Netstat (space) -a (space)-n. You didn't add spaces.
Question 4: How can I check all the ports opened by others according to IP? Use a scanning spindle ~ ~ Sorry, I forgot ~ ~ Go to a hacker website and have a look ~ But you said not to swear, but I still want to say that it doesn't matter if you don't do bad things and have fun ~ ~ ~
Question 5: How to check the open network ports of this computer? Click "Start → Run" in turn, enter "cmd" and press enter to open the command prompt window. Type "netstat -a -n" at the command prompt, and then press Enter to view the port number and status of TCP and UDP connections displayed in digital form.
Network statistics-electronics -n -o -s-an
-a displays all active TCP connections and TCP and UDP ports that the computer listens to.
-e indicates the number of bytes and packets sent and received by Ethernet.
-n indicates that only the addresses and port numbers of all active TCP connections are displayed in digital form.
-o displays the active TCP connections, including the process ID(PID) of each connection.
-s indicates that statistics of various connections, including port numbers, are displayed by protocol.
-View all open ports
Question 6: How to view the port+how to close the open port 1. To view open ports:
1, with the help of the system's own MS-DOS command to view the open ports (Win2000/XP/server2003).
At start-run-type cmd, type netstat -an (note that there is a small space before-"), and the" "after the IP address is the port number. (-a shows all current connections and listening ports, while -n shows addresses and port numbers in digital format)
Common sense: TCP (Trans * * * Issue Control Protocol) and UDP(User Datagram Protocol) are communication protocols for transmitting data on the network. UDP protocol is connection-oriented, while TCP protocol is connection-oriented. Their respective port numbers are independent of each other. For example, TCP can have 255 ports and UDP can have 255 ports, and they do not conflict.
2. Check the open ports with the help of third-party software.
(1) For example, Active Ports (produced by Smart Line) can be used to monitor all open TCP/IP/UDP ports, display all your ports, and also display all the ports and the paths where corresponding programs are located, so as to check whether local IP and remote IP (IP trying to connect to your computer) are active.
(2) For example, fpor command line tool: compact in function, but no less functional than the active port, and can also view the port and the corresponding program path. Display mode: Pid process port protocol path, 392 svchost->113tcp, c: \ winnt C:\WINNT\system32\vhos.exe 。
(3) For example, the display of network activities of firewalls or antivirus tools: For example, Rising Firewall can refresh the opened ports and related processes in time, and anti-spyware experts also have this function. There are many such softwares, which can serve multiple purposes.
Second, the method of limiting or closing the port:
1. "Restrict opening" the required ports through the system's own functions (Win2000/XP/server2003)
Restrict the server port through the system's own tcp/ip filtering function, control panel-network connection-local connection-right click-properties, and then select Internet (tcp/ip)- properties-advanced-options-selected TCP/IP filtering-properties, which are divided into three items, namely TCP, UDP and IP protocols. Suppose my system only wants to open four ports (qq is 4000 ports), which are 2 1, 80,25, 1 10. Just tick "Allow Only" on "TCP Ports" and click "Add" to add these ports in turn, then confirm and restart to take effect.
2. Increase the "Allow Pass" port through the firewall of the system itself.
(1) WINXP/Server2003, SP2 will not be upgraded.
Control Panel-Network Connection-Local Connection-Properties-Advanced, select the option under "Inernet Connection Firewall" so that the firewall will start automatically. Click Settings, and we can click Add in the Services tab of the Advanced Settings window. In the Service Settings dialog box, enter the service description, computer name or IP address, and port number. (A cute little lock will appear on the Local Area Connection icon after the firewall is started. )
(2) Upgrade Windows XP of SP2 WIin XP.
Control Panel -windows Firewall-Exceptions-Add Ports. After naming, enter the port number, confirm the TCP or UDP protocol, and then confirm. Check this setting before naming, indicating that it is allowed to pass through this port, and uncheck it to indicate that it is no exception.
3. Use the "Local Security Policy" function to close the port (WINXP Home Edition does not have this function).
Close TCP: 135 (Win2000, WinXP to prevent RPC 135 overflow vulnerability),139,445 (registry "HKEY _ LOC ... >); & gt
Question 7: How to check which ports the computer has opened and which ports the computer has opened?
First, how to check which ports are opened on the computer?
1, use the netstat command.
Windows provides netstat command, which can display the current TCP/IP network connection.
XP method: Start-Program-Accessories-Command Prompt, enter the DOS window, and enter the command netstat -na to display the connection status and open port of this machine.
(win 7 method: start-point-run, enter CMD enter in the run window, enter the DOS window, and enter the command netstat -na enter to display the connection status and open ports of this machine. ) where the local address indicates the local IP address and the open port number, the external address indicates the IP address and port number of the remote computer, and the status indicates the current TCP connection status.
2. Using port monitoring software, such as security monitoring tool VStat, can not only display all network activities, but also indicate the system path and query attributes, so as to find files. Allows you to close the establishment and termination of any existing TCP and UDP connections.
Second, how to permanently close some dangerous Trojan ports?
Each service corresponds to a corresponding port, and the commonly used services are turned on by default-it is really unnecessary for individual users.
Ports are like several doors of a house (server), and different doors lead to different rooms (server provides different services). The default port of FTP we commonly use is 2 1, while the default port of webpage is 80. However, we often open some vulnerable port services, such as 139. There are also some Trojan horse programs, such as Glacier, Bo, Guangwai and so on. It will automatically open a port you don't know. Then, as long as we block all the unused ports, won't we put an end to these illegal intrusions?
1, "Services" in "Administrative Tools" of the control panel, disable unnecessary services, and the corresponding ports will be closed.
Reminder: For individual users, it is strongly recommended to close the sever service (null connection can be prohibited).
2. Use the "TCP/IP filtering" function to limit the port of the server.
Methods: Local Connection Properties-Internet Protocol (TCP/IP)- Properties-Advanced-Advanced TCP/IP Settings-Options -TCP/IP Filtering.
Select "Enable TCP/IP filtering" check box in the pop-up dialog box, and then select "Allow only" in the left TCP port.
3. Run gpedit.msc and set it manually in PC Configuration -Windows Settings-Security Settings -IP Security Policy.
Reminder: There are multiple policies, and only one current policy can be assigned.
4. Use ipseccmd to shield unsafe ports.
Its main function is to set your filtering rules, give it a name and specify a policy name. The so-called policy is just a set of filtering rules. For example, if you want to close the TCP3333 port to send and receive data in both directions, use the following command:
Ipseccmd -w REG -p Block default port-rblock TCP/3333-f *+0: 3333: TCP-nblock-x
Commonly used parameters are as follows:
-w reg means that the configuration is written into the registry and still valid after restarting.
-p Specify the policy name, and if the name exists, add the rule to the policy, otherwise, create one.
(Note that it is best to use the same policy name, because the IP security policy of the system is subject to the last one added. )
-r specifies the rule name.
-n specifies the operation, which can be BLOCK, PASS or INPASS, and must be capitalized.
-x activation policy.
-y invalidates it.
O delete.
-p specified policy.
-f Set filtering rules.
-y Delete rule.
Methods: Copy the ipseccmd program to the directory of C:/WINDOWS/system32, and use the command prompt for additional execution.
If it is helpful, please accept it and choose it as a satisfactory answer. Thank you! ...& gt& gt
Question 8: How to check the services running on the open ports of the host and the ports corresponding to Windows services?
First check the port number: here we take the task manager under win8 as an example. Open the Task Manager (right-click the taskbar at the bottom of the desktop):
In the Task Manager interface, select Details. At this time, the column corresponding to PID is the open port number of our computer. In addition, we can also see the program corresponding to this open port. 2. Add a new port number: Open windows Firewall Settings under Control Panel and select Advanced Settings:
Select the inbound rule, and then click New Rule on the right side of the window:
Under Protocol and Port, select a port:
Finally, according to the type of port we open (TCP or UDP), and then enter the value of the port number we want to increase in "specific local port".
Question 9: How to check whether a port of the other party is open 1 and Baidu webmaster tool? Click Open.
2. Then click Other Tools in the navigation and select Port Scan.
3. Enter the IP address or Sichuan name, and click "Query".
Question 10: How to check that all ports on this machine are open? Click "Start → Run" in turn, enter "cmd" and press enter to open the command prompt window. Type "netstat -a -n" at the command prompt, and then press Enter to view the port number and status of TCP and UDP connections displayed in digital form. Netstat-a-e-n-o-s-an-a shows all active TCP connections and TCP and UDP ports that the computer listens on. -e indicates the number of bytes and packets sent and received by Ethernet. -n indicates that only the addresses and port numbers of all active TCP connections are displayed in digital form. -o displays the active TCP connections, including the process ID(PID) of each connection. -s indicates that statistics of various connections, including port numbers, are displayed by protocol. -View all open ports