Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to filter out my local machine's IP address

I used ip.src !=|| ip.dst != and I keep seeing my address pop up.

share|improve this question

Your or should be an and

ip.src != && ip.dst !=
share|improve this answer
That won't work. You need to !ip.src == ..... Further !ip.addr == covers either. – Scruffy Jul 15 at 5:30

Mitch is right. With the negative match like you have, you need both conditions to be true to filter off your IP, thus and instead of or. You could also write it like so:

not (ip.addr ==

It might seem more logical to write it as ip.addr !=, but while that's a valid expression, it will match the other end of the connection as not being the specific ip and still be true. For example, when connecting to from, ip.addr != doesn't match *.22 IP, it matches *.254 and thus the packet matches the filter expression. Here's a complete example to filter http as well:

not ip.addr == and not tcp.dstport == 80

tcp.dstport != 80 suffers from a similar problem; having tcp.dstport != 80 turns out to mean "match ONLY tcp traffic, but only tcp that is not dstport == 80"

While not strictly your question, I prefer to do filtering in the capture filter (double click the interface name in the capture-options dialog), whose syntax is exactly like tcpdump. It makes the capture take less memory and disk by avoiding capturing packets you're telling it to ignore. The downside is those packets are not captured if you later want to inspect them and you can't change the filter selected this way during a capture session. For example, to keep from capturing http and ssh traffic to/from any host and any packets to or from,

not host and not port 80 and not port 22

If you only wanted to filter http traffic to and from that host, you could do this:

not (host and port 80)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.