HTTP uses port 80. I found this on the internet and used
But since I am a newbie, searching for port used by TCP and that used by UDP has confused me, since they both appear to have so so many ports. So what capture filter do I use to capture only TCP and UDP traffic. Thank you in advance. asked 15 Aug '16, 00:55 Jesss |
One Answer:
The manual with examples is here. For your case, it would be answered 15 Aug '16, 01:01 sindy |
-f "tcp or udp"
is a display filter, not a capture filter. I need a capture filter.I checked the manual. What I learnt from it is that for a capture filter based on protocol, I need to know the port number the protocol uses.
-f
specifies a capture filter,-Y
specifies a display filter.tcp or udp
is a legal syntax in both.tcp
is an abbreviation ofproto tcp
in capture filter syntax.There are several protocol layers. UDP and TCP are transport protocols above IP so they are identified by a field in the IP header. HTTP or Telnet are application protocols using TCP as transport, and there the distinction based on TCP port number makes sense.