Capture Network Traffic With Wireshark on Windows

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
- Download Wireshark from the official download page.
- In the installer, keep Npcap selected. It needs administrator rights to install.
- 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
- Start the capture on that interface.
- Reproduce the problem once, for example by opening the file share or running the application.
- 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.