Skip to content

Capture and Inspect Traffic

Capture authorised traffic and use Wireshark statistics and display filters to understand the packets, protocols, endpoints, and conversations it contains.

Capture only authorised traffic

Packet captures can contain credentials, personal data, and confidential communications. Capture and inspect traffic only on systems and networks you own or are explicitly authorised to test.

Start and stop a capture

Once installation is complete, open Wireshark. It will display the network interfaces attached to your computer.

Wireshark home screen listing available capture interfaces

For this demonstration, double-click the loopback interface. Wireshark immediately starts capturing traffic that applications on the same host exchange through the loopback interface. To inspect traffic to or from other systems, select the active Ethernet or Wi-Fi interface instead.

You can stop the traffic capture by clicking the stop button.

Wireshark packet capture with the stop-capture control highlighted

From the menu, select Statistics → Capture File Properties. You can see the times of the first and last packets and the elapsed capture time.

Wireshark Capture File Properties showing packet and timing details

To view the protocol hierarchy, select Statistics → Protocol Hierarchy. Wireshark presents a list of protocols found in the PCAP.

Wireshark Protocol Hierarchy statistics

Right-click a selected value to apply it immediately as a display filter or prepare a filter for further editing.

Wireshark context menu for applying or preparing a display filter

To view conversations, select Statistics → Conversations, then select the IPv4 tab. This summarizes communication between pairs of hosts.

Wireshark IPv4 Conversations statistics

To view endpoints, select Statistics → Endpoints, then select the IPv4 tab. This identifies the IPv4 endpoints present in the PCAP.

Wireshark IPv4 Endpoints statistics

Capture checkpoint

This journey is complete when Wireshark opens, lists the expected interfaces, and can start and stop a test capture. If no interfaces appear, check the Npcap installation and the permissions of the current account.