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

Hi there,

I've got a little homework for a college course here.

We got a number assigned and have to create traffic that includes said number. We then have to capture that traffic with Wireshark and make a screenshot of the capture where our assigned numbers are visable.

I'm pretty new to Wireshark, I've only played around with it so far and am now looking for a bit of help on how to create that traffic and how to navigate through Wireshark to get the information I need.

Thanks in advance!

asked 02 Jul '15, 08:16

Seby's gravatar image

Seby
11115
accept rate: 0%

edited 02 Jul '15, 08:52

grahamb's gravatar image

grahamb ♦
19.8k330206


The hardest part is definitely creating the traffic. Presumably the course covers network programming (or it is a prerequisite), and given that I would suggest you use UDP to send your "assigned" number somewhere (off the local machine, e.g. to your gateway modem\router. Use UDP as it doesn't require a "listening" connection at the other end as TCP does.

Then start Wireshark, select the interface to capture on, start the capture, run your application to send the UDP data, stop the capture, use a display filter for "udp.port=xxx", where xxx is the destination port used in your application, see your data, job done.

permanent link

answered 02 Jul '15, 08:51

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

I see. Thank you very much. I'm gonna see how far I get and report back later.

(02 Jul '15, 09:14) Seby

Well, it worked like a charm! I sent a package (I put the number in as the package name) to my router and found it in Wireshark. I just don't know under what section I have to look in Wireshark to find the number again.

EDIT: Nevermind! I found the number. I'm surprised it was actually that easy. Again thank you very much for your help.

(02 Jul '15, 09:26) Seby
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:

×549
×115
×23

question asked: 02 Jul '15, 08:16

question was seen: 1,189 times

last updated: 02 Jul '15, 09:34

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