(winpcap, a must-install for network packet capture software/network sniffer using C . Jpcap, using java to implement Csharpcap, using C# to implement Jpcap as an example, encapsulates several classes of java to implement packet capture, such as ARP, IP, TCP, etc., just call to get each field in the message, which is very convenient.
WinPcap_4_1_1.exe
.....)