Wireshark Filters

Wireshark captures a huge amount of traffic, often within just a few seconds. Without filters, the packet list can become overwhelming and difficult to read.

That is why filtering is one of the most important skills to learn. Filters help a user narrow the traffic down so a user can focus only on the packets that matter for a specific task.

Why Filters Matter

Instead of looking through every packet, a user can instantly isolate specific traffic such as DNS requests, HTTP conversations, TCP connections, or packets from a particular IP address.

In short, filters turn Wireshark from a flood of data into something a user can actually analyze.

Display Filters

Display filters are used after traffic has already been captured. They do not remove packets from the capture. They only control what is shown on screen.

Capture Filters

Capture filters are applied before the traffic is captured. They tell Wireshark what to collect and what to ignore from the start.

These are useful when a user wants smaller, more targeted captures, but they are less forgiving because traffic that is not captured cannot be reviewed later.

Quick Rules to Remember

Useful Display Filter Examples

Here are some common display filters a user can use right away:

DNS Traffic

dns

Shows DNS queries and responses.

HTTP Traffic

http

Shows HTTP traffic if it is visible in the capture.

TCP Traffic

tcp

Shows all TCP packets.

Specific IP Address

ip.addr == 192.168.1.10

Shows packets to or from a specific device.

Specific Port

tcp.port == 443

Shows traffic using a specific port.

Retransmissions

tcp.analysis.retransmission

Helps identify possible network performance issues.

How to Apply a Display Filter

  1. Start or open a packet capture
  2. Click the display filter bar near the top of the Wireshark window
  3. Type a filter such as dns or tcp
  4. Press Enter to apply it

If the filter is valid, Wireshark will update the packet list immediately. If there is a syntax problem, the filter bar will alert you.