Wireshark's display filter system allows analysts to isolate specific network traffic by IP address, port, protocol, or direction, cutting through the noise of large packet captures. Filters can be typed manually or applied directly from captured packets using right-click context menus.
Wireshark Packet Filtering
Since we can end up with a lot of packets when we do a packet capture, it's really helpful to know how to do some filtering. We may be looking for some specific information, so I'm just going to show you a few examples of how to do filtering.
The first thing I'm going to do is, in here I can type something like ip, and as you can see there's lots of different options that we have with this. There's a lot of different filtering capabilities this has, so I'm just going to show you a few that I use, and then if you have other things you're looking for, you should be able to sort by pretty much anything in here.
IP address is one that I like to use a lot. Let's say I'm looking for a specific IP address, maybe the ones associated with this machine, so 10.1, 10.34 is the one I'm going to look for. So it's the field, and equal equal, and then what I'm looking for. That is what I'm looking for right there, and it's showing me everything that's communication going to or from this 10130 do34.
But maybe that's not what I want. Maybe what I actually want to do is anything that's sourced from this address, so that would be ip, and then I could do src, and then hit enter, and now anything that's sourced from 10.1.1 10.34, it's showing me that. Or maybe I want to say anything that's destined for this machine or this IP address, so then I can do ip dot destination, or dst.
Some other ones that I like to do — a lot of times I like to sort by the port. Maybe I'm going to just remove this altogether, I can hit this x up here. Now maybe next what we want to do is do it by tcp dot port, and I'm going to do equal equal, space, 80, and everything that's going to be HTTP. So now it's showing you everything that's HTTP, but once again, it's showing you everything that is coming in or out that is destined for port 80 or coming into port 80.
Maybe I just want to have a destination of port 80, so dst port equal equal 80, hit enter, and now it's showing just those that are going to port 80.
There are some other ways to apply filters as well. What I'm going to do is scroll down to the conversation I'm most interested in, which is between this device and that web browser, and I can click one of these fields, right click on it, and say apply as filter, and I'm going to do selected. Then I'll do that, and now it automatically puts in IP destination 10.1.3 23. So that's one way to do it.
There's also this — I can right click on this and do conversation filter, so I can then say what I want to filter by. Maybe I want to see this TCP communication that's happening, so I'm going to select TCP, and it shows me that TCP communication.
Another thing I can do is, let's say maybe something's really distracting — maybe all this spanning tree information is distracting. Another thing I can do is filter based off of something that I don't want. So for instance I can say apply filter, I want this not selected, and hit there, and then it will remove those items. You can see that it does this little exclamation point as the key to that, so I can actually write in my expression up here with an exclamation point to filter or remove certain pieces of information from here as well, which might help clear some of the information out.
In fact, there are things that I don't really use too much, but I can start ignoring packets and doing some stuff to filter out some of the distracting elements of this.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →