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

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 != 192.168.1.55"`

2.Destination IPs that are not mine:

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

where 192.168.1.55 is my IP.

asked 09 Oct '16, 11:09

user31415's gravatar image

user31415
26569
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

sindy
6.0k4851
accept rate: 24%

Try:

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

answered 09 Oct '16, 11:44

grahamb's gravatar image

grahamb ♦
19.8k330206
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×832
×349
×33

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