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

I have a windows service that uses winsock communicating to another windows service that uses winsock. We are talking over TCP/IP using JSON.

I am trying to prove that my service is behaving properly and that the service it communicates to is not sending the expected data.

I set up wireshark to capture on the Ethernet card I am using on my local machine and filter on ip.addr == <remote ip="" address=""> and I can see the traffic.

I am expecting messages that contain "Message One" and I can see them, thousands of them. While I am receiving all those, I expect a few messages that contain "Message Two"

How do I set up the filter to prove that I am not receiving the "Message Two" messages?

I Googled a little bit and someone said use data-text-lines contains "Message Two", but that doesn't work. I can verify it doesn't work by looking at the messages that contain "Message One" and then filtering data-text-line contains "Message One" and they all disappear when they shouldn't. I have a feeling that is for http only.

What do I use for a filter?

asked 28 Jun '17, 08:48

Fleshbits's gravatar image

accept rate: 0%

Just use a display filter frame contains "Message Two". This filter doesn't care about how the packet is dissected and searches in the raw bytes.

permanent link

answered 28 Jun '17, 10:01

sindy's gravatar image

accept rate: 24%

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: 28 Jun '17, 08:48

question was seen: 11,111 times

last updated: 28 Jun '17, 10:01

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