Capture All Network Traffic Wireshark: Full Guide
In this article
Yes, Wireshark can capture all network traffic on an interface, but whether you actually see everything depends on your hardware, operating system, and how you configure the capture. This guide explains what Wireshark can and cannot capture, how to set it up for maximum visibility, and common pitfalls that make traffic invisible.
What Wireshark Actually Captures
Wireshark captures packets that the operating system's network stack delivers to the capture driver (Npcap on Windows, libpcap on macOS/Linux). In practice, this means:
- All traffic to and from your machine on the selected interface, regardless of protocol (TCP, UDP, ICMP, etc.).
- Broadcast and multicast traffic on the local network segment, such as ARP requests or mDNS.
- Traffic from other devices only if your network interface is in promiscuous mode and the switch sends you those frames (e.g., on a hub, a mirror port, or a Wi-Fi adapter that supports monitor mode).
What you won't see by default:
- Traffic on other interfaces you haven't selected.
- Traffic encrypted at the link layer (e.g., WPA2/WPA3 on Wi-Fi without the decryption key).
- Packets dropped by the capture driver due to high load or buffer overflow.
How to Capture All Traffic on Your Machine
For a typical host capture, follow these steps:
- Install Wireshark with Npcap (Windows) or libpcap (Linux/macOS). During Npcap installation, check "Support raw 802.11 traffic" if you need Wi-Fi headers.
- Open Wireshark and select the correct interface from the home screen. On Windows, interfaces named "Ethernet" or "Wi-Fi" are common; on Linux, use
eth0,wlan0, etc. - Click the shark fin icon or double-click the interface to start capture.
- Stop the capture with the red square button.
To capture on multiple interfaces simultaneously, hold Ctrl while clicking interfaces in the list, then start. Wireshark merges them into one capture file with timestamps.
Promiscuous Mode and Monitor Mode
Promiscuous mode tells the network card to pass all frames it receives to the OS, not just those addressed to your MAC address. Enable it by going to Capture > Options and checking "Enable promiscuous mode on all interfaces" (or per-interface in the gear icon). This is essential for seeing other devices' traffic on a wired network that uses a hub or a switch port mirror.
For Wi-Fi, promiscuous mode alone is not enough. You need monitor mode, which captures raw 802.11 frames including management and control frames. On Windows, Npcap supports this only on certain adapters; on Linux, use airmon-ng or the Wireshark interface options to enable monitor mode. Note that monitor mode often disconnects you from the network, and capturing encrypted traffic will show only headers unless you provide the decryption key.
Why You Might Not See All Traffic
Several common reasons explain missing packets:
- Switched networks: A switch sends unicast frames only to the destination port. Without port mirroring (SPAN), you won't see other hosts' traffic.
- Firewall offloading: Some network cards use hardware offloading (e.g., TCP segmentation offload, receive offload) that can cause Wireshark to miss packets or show them with incorrect sizes. Disable offloading in the adapter settings if you need precise captures.
- Capture buffer overflow: If the capture driver's buffer fills faster than Wireshark can write to disk, packets are dropped. Increase the buffer size in Capture Options (e.g., to 100 MB) or use a dedicated capture file with multiple files.
- VLAN tags: By default, Wireshark may not show VLAN headers unless you enable "VLAN" in the Decode As or the interface's link-layer type is set correctly.
Capturing Traffic from Other Devices
To see all network traffic in a switched environment, you need one of these:
- Port mirroring (SPAN): Configure the switch to copy all traffic from a port or VLAN to the port where your capture machine is connected.
- Network TAP: A hardware device inserted between the link and the device, which passes traffic to two outputs—one to the network, one to your capture port.
- ARP spoofing: Redirect traffic by sending fake ARP replies, but this is intrusive and may disrupt the network. Use only on your own lab.
For Wi-Fi, you can capture all nearby traffic in monitor mode, but you'll only see data frames if you know the WPA2/WPA3 password. In Wireshark, go to Edit > Preferences > Protocols > IEEE 802.11 and add the decryption key (the passphrase and SSID) to decrypt.
Common Mistakes and Misconceptions
One frequent mistake is assuming that Wireshark captures everything on the wire. In reality, it depends on the interface and the network topology. Another is forgetting to set the correct capture filter—for example, using host 192.168.1.1 will exclude all other traffic. Also, many users confuse display filters with capture filters; capture filters are applied at the driver level and reduce the amount of data stored, while display filters only hide packets from view after capture.
Another misconception: Wireshark cannot capture traffic on a VPN tunnel as plaintext. It sees the encrypted outer packets (e.g., ESP or TLS) unless you capture on the virtual interface before encryption (like the TUN interface on Linux) or have the decryption keys.
Performance and File Size
Capturing all traffic on a busy network can generate gigabytes of data in minutes. To manage this:
- Use capture filters to limit what you record (e.g.,
port 80ornot arp). - Set up multiple file capture: in Capture Options, check "Use multiple files" and specify a file size (e.g., 20 MB) or duration (e.g., 60 seconds).
- Increase the buffer size to avoid drops.
- Consider using
dumpcap(Wireshark's command-line capture tool) for lower overhead.
Frequently Asked Questions
Can Wireshark capture all traffic on a Wi-Fi network?
Yes, but only if your wireless adapter supports monitor mode and you have the decryption key for WPA2/WPA3. Without the key, you'll see 802.11 management frames and encrypted data, but not the payload.
Why does Wireshark only show my own traffic on a switch?
Because switches forward unicast frames only to the destination port. To see other devices' traffic, you need port mirroring, a TAP, or an ARP spoofing attack on your own network.
How do I capture all traffic on a specific port?
Use a capture filter like tcp port 443 or udp port 53. You can also capture everything and apply a display filter like tcp.port == 443 after.
Does Wireshark capture VPN traffic?
It captures the encrypted VPN packets (e.g., ESP or TLS) on the physical interface. To see the inner plaintext, capture on the virtual interface (like tun0 on Linux) or configure the VPN client to allow loopback capture.
Why do I see "No packets captured" even though I'm browsing?
Check that you selected the correct interface (e.g., Wi-Fi vs. Ethernet), that promiscuous mode is enabled, and that your capture filter isn't too restrictive. Also, on Windows, ensure Npcap is installed and the service is running.