In Windows, there is a program netstat that comes with Windows. The principle is the same as that of small wood. The difference is that small wood is
Only when someone else sends us data packets can the IP address query function be implemented. If the recipient does not reply, then he cannot
. This method is to take the initiative to attack the method, send data packets to the other party, and then use
Linux Command sharing: detailed explanation of the netstat command and the netstat command
The netstat command is used to display statistics related to IP, TCP, UDP, and ICMP protocols. It is generally used to check the network connection of each port on the local machine. Netstat
Netstat and netstat commandsIntroduction
In the Internet RFC standard, Netstat is defined as: Netstat is a program that accesses networks and related information in the kernel. It can provide TCP connections, TCP and UDP listeners, reports on process memory management.
Netstat
Netstat:In the Internet RFC standard, netstat is defined as: Netstat is a program that accesses the state of the network connection and its associated information in the kernel, and it provides reports on TCP connections, TCP and UDP snooping, and process memory management. Netstat is a console command and is a very useful tool for monitoring TCP/
Netstat is a very useful tool for monitoring TCP/IP networks using more frequent port view commands. You can use the netstat command to view 80 port occupancy When you use a VPS or cloud server to install Web site environment software that launches IIS, Apache, or Tomcat, and you often encounter port 80 being used to fail to start an error.
[Linux] linux Command learning-netstat, linux-netstat
Many linux services are related to the network. When the service cannot be called, the startup port is occupied, or the firewall is blocked, you need to query network problems, the netstat command only uses one or two parameters.
Common options:
-A (all) shows all options. LISTEN is not displayed by defau
[:]: * LISTEN only lists all listening udp ports netstat-lu # netstat-lu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State udp 0 0 *: 49119 *: * u Dp 0 0 *: mdns *: * only list all listening UNIX ports netstat-lx # netstat-lx Active UNIX domain sockets (only servers) pr
Internet connections (only servers)
Proto recv-q send-q Local address Foreign address state
UDP 0 0 *:49119 *:*
UDP 0 0 *:mdns *:*
List only all listening UNIX ports NETSTAT-LX
# NETSTAT-LX
Active UNIX domain sockets (only servers)
Proto refcnt Flags Type State I-node Path
Unix 2 [ACC] STREAM listening 6294 private/maildrop
Unix
listening UDP ports only Netstat-lu[Email protected] scripts]# netstat-luactive Internet connections (only servers) Proto recv-q send-q Local Address F Oreign Address State UDP 0 0 *:bootpc *:* List all listening UNIX ports only NETSTAT-LX[Email protected] scripts]#
X25 ' on the This system.Netstat:no support for ' AF Netrom ' on the This system. 8. Display Core routing information Netstat-r# Netstat-rKernel IP Routing TableDestination Gateway genmask Flags MSS Window Irtt Iface192.168.1.0 * 255.255.255.0 U 0 0 0 eth2Link-local * 255.255.0.0
X25 ' on the This system.Netstat:no support for ' AF Netrom ' on the This system.8. Display Core routing information Netstat-r# Netstat-rKernel IP Routing TableDestination Gateway genmask Flags MSS Window Irtt Iface192.168.1.0 * 255.255.255.0 U 0 0 0 eth2Link-local * 255.255.0.0 U
--verboseAt the end of the output, there is the following informationNetstat:no support for ' AF IPX ' on the This system.Netstat:no support for ' AF AX25 ' on the This system.Netstat:no support for ' AF X25 ' on the This system.Netstat:no support for ' AF Netrom ' on the This system.3.8 Displaying core routing information netstat-r# Netstat-rKernel IP Routing Ta
X25 ' on the This system.Netstat:no support for ' AF Netrom ' on the This system.8. Show Core routing information Netstat-r (route)# Netstat-r Kernel IP Routing TableDestination Gateway genmask Flags MSS Window Irtt Iface192.168.1.0 * 255.255.255.0 U 0 0 0 eth2Link-local * 255.255.0.
X25 ' on the This system.Netstat:no support for ' AF Netrom ' on the This system. 8. Display Core routing information Netstat-r# Netstat-rKernel IP Routing TableDestination Gateway genmask Flags MSS Window Irtt Iface192.168.1.0 * 255.255.255.0 U 0 0 0 eth2Link-local * 255.255.0.0
X25 ' on the This system.Netstat:no support for ' AF Netrom ' on the This system. 8. Display Core routing information Netstat-r# Netstat-rKernel IP Routing TableDestination Gateway genmask Flags MSS Window Irtt Iface192.168.1.0 * 255.255.255.0 U 0 0 0 eth2Link-local * 255.255.0.0
all listening UDP ports only Netstat-lu# Netstat-lu Active Internet connections (only servers) Proto recv-q send-q Local address Foreign address State u DP 0 0 *:49119 *:* UDP 0 0 *:mdns *:*List all listening UNIX ports only NETSTAT-LX# NETSTAT
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.