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

List all ports used in a communication

0

Hi, Is there any way to list all the ports used during a communication? For example I have an UDP communication between IP-A and IP-B, how can I know which ports they use without looking all the packets? Thank you

asked 05 Nov '15, 08:43

rok's gravatar image

rok
26446
accept rate: 0%


One Answer:

1

Filter the capture to only traffic between hosts A and B, then use Statistics -> Endpoints, and then select the UDP tab.

You can also add the filter straight from that dialog by right clicking an entry and then selecting "Apply As a Filter ..." but that also adds the port to the filter which isn't what you want.

You need a two host filter such as (ip.src == a and ip.dst == b) or (ip.src == b and ip.dst == a).

answered 05 Nov '15, 08:52

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Your first method is exactly what I want! Don't forget to select "limit to display filter". ;)

(05 Nov '15, 09:22) rok