This is our old Q&A Site. Please post any new questions and answers at

How can I display all IPs that are not mine with `tshark.

I need to combine those 2 commands

1.Source IPs that are not mine:

  `tshark -T fields -e ip.dst -Y "ip.dst !="`

2.Destination IPs that are not mine:

`tshark -T fields -e ip.dst -Y "ip.dst !="`

where is my IP.

asked 09 Oct '16, 11:09

user31415's gravatar image

accept rate: 0%

tshark -Y usb -z endpoints,ip may be what you are looking for. By -Y usb you prevent any individual frames from being printed, and -z endpoints,ip will cause tshark to print the statistics of IPs encountered in the capture - yours will be there too, but just once, like all the others.

permanent link

answered 09 Oct '16, 11:34

sindy's gravatar image

accept rate: 24%


tshark -T fields -e ip.src -e ip.dst -Y "ip.src != and ip.dst !="
permanent link

answered 09 Oct '16, 11:44

grahamb's gravatar image

grahamb ♦
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 09 Oct '16, 11:09

question was seen: 1,291 times

last updated: 09 Oct '16, 11:44

p​o​w​e​r​e​d by O​S​Q​A