Wireshark for beginners: read real packets with filters

☰ All 15 lessons

Remember lesson 1? The first time I opened Wireshark, I just sat there and understood nothing. Let's look at that same screen again.

Now it makes sense

Back then I didn't know TCP, IP or ports. Now you've learned all three. Every line in Wireshark is one packet:

ColumnMeansLesson
SourceThe IP the packet came from3
DestinationThe IP it's going to3
ProtocolTCP, UDP, DNS, HTTP, TLS, ARP…7–12
InfoPorts and flags, like 51234 → 443 [SYN]6, 8

Display filters

Hundreds of packets arrive every second. Type a filter in the bar at the top and everything else disappears:

FilterShows only
dnsDNS lookups and replies
httpPlain HTTP traffic
tcpTCP packets, including handshakes
arpARP requests and replies
ip.dst == 192.168.31.1Packets going to that IP
ip.addr == 192.168.31.1Packets to or from that IP
tcp.dstport == 443Packets going to port 443
tcp.flags.syn == 1 && tcp.flags.ack == 0Only the first SYN of each handshake

See what you learned, live

  1. Start a capture on your Wi-Fi or Ethernet interface.
  2. Open a website in your browser.
  3. Filter dns: you'll see the query asking for the site's IP, and the reply with the answer (lesson 9).
  4. Filter tcp: find the three packets marked [SYN], [SYN, ACK], [ACK], in that exact order. That's the 3-way handshake from lesson 8.

Capture only your own traffic, on networks you own or are allowed to monitor. Before sharing a screenshot, blur real IP and MAC addresses.

The screen I couldn't read back then, you can read now. That's the difference learning networking makes. Open Wireshark today and try these filters.

Key takeaways

  • Each Wireshark row is one packet: source, destination, protocol, info.
  • Display filters show only what you need: dns, http, tcp, arp.
  • ip.dst == IP filters by destination; tcp.dstport == port by port.
  • Capture only your own traffic, and blur real addresses before sharing.

Quick quiz

Pick an answer to check yourself. Answer both to mark this lesson done.

1. Which filter shows only DNS packets in Wireshark?

  1. A) dns
  2. B) ip
  3. C) mac
  4. D) port
Show answer

Answer: A. Typing a protocol name (dns, http, tcp) in the filter bar shows only those packets.

2. Which filter shows only packets going to port 443?

  1. A) http
  2. B) tcp.dstport == 443
  3. C) ip.dst == 443
  4. D) dns == 443
Show answer

Answer: B. tcp.dstport == 443 shows packets whose TCP destination port is 443. ip.dst is for IP addresses.

Frequently asked questions

What is Wireshark used for?

Wireshark captures and shows the packets travelling over a network, so you can see protocols like DNS, TCP and HTTP in action and troubleshoot or investigate traffic.

What is the Wireshark filter for an IP address?

ip.addr == 192.168.31.1 shows packets to or from that IP; ip.dst and ip.src show only one direction.

Is it legal to use Wireshark?

Yes, on your own network and traffic, or where you have permission. Capturing other people's traffic without permission is not.

Do it hands-on.

This tutorial gives you the concepts. The 50 Days Ethical Hacking Challenge puts them to work in real labs, explained in Malayalam.