Networking

Capture Network Traffic With Wireshark on Windows

Published November 20, 2026

Close-up of a red network patch cable with a clear RJ45 connector on a white surface.
Photo: www.heimnetzwerke.net / Wikimedia Commons, CC BY 4.0

A capture is the record of packets that pass through one network interface. On Windows, Wireshark needs the Npcap driver to read those packets. Once it is installed, the capture itself takes a few clicks.

Install the tools

  1. Download Wireshark from the official download page.
  2. In the installer, keep Npcap selected. It needs administrator rights to install.
  3. Restart Wireshark after installing Npcap, so that it sees the driver.

Pick the right interface

Wireshark lists the network interfaces on the start page. Choose the one that carries the traffic you care about. If the PC has a wired and a Wi-Fi connection, check the IP address of each interface and choose the one on the same network as the server.

Capture a short sample

  1. Start the capture on that interface.
  2. Reproduce the problem once, for example by opening the file share or running the application.
  3. Stop the capture as soon as the problem has happened.

A short capture is easier to read and holds less data about other people’s activity.

Limit what you record

Use a capture filter when you know the address and port. For example, host 192.168.1.20 and port 445 records only the traffic between your PC and that server on SMB. Capture filters use the BPF syntax, which is different from the display filters used after the capture.

Save the file carefully

Save the capture, and remember that it can contain passwords, file names and personal data. Store it on a protected location and delete it when the task is done. The rules for doing this are in the guide on capturing traffic legally and responsibly.

Sources