Home>Article>Web Front-end> How does wireshark capture local data packets?

How does wireshark capture local data packets?

零下一度
零下一度 Original
2017-06-25 09:46:38 2544browse

In the windows system, the data packets sent to itself locally do not go through the real network interface, but are sent through the loopback interface, so it cannot be captured using winpcap which can only capture data from the real network interface. For local data packets, you need to use npcap. npcap is developed based on winpcap 4.1.3. The API is compatible with WinPcap and provides "npcap loopback adapter" to capture the data packets sent locally to itself.

Usage:

1. Download and installWireShark, the version number must be higher than1.12.8 and1.99.9, there is no need to install them if they are already installed. Please close them before installing npcap.

#wireshark download

# #2. Download and install npcap. If there is winpcap on this machine, please uninstall it first.

npcap下载

3. After the installation is complete, enter wireshark, open the menu "Capture->Options", and in the input interface of the pop-up dialog box, You can see the "npcap loopback adapter" interface, select the interface and start capturing.

End

The above is the detailed content of How does wireshark capture local data packets?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn