A packet capture preserves the traffic seen at a network interface. Wireshark opens PCAP files so you can inspect individual packets, filter traffic, and reconstruct a captured conversation.

The packet list shows timing, endpoints, and protocol summaries, while the packet-details tree explains fields in the selected packet. A TCP stream view combines captured payload from both directions, making a request and its reply easier to read than separate packet fragments.

Wireshark must already be installed, with a local PCAP or PCAPNG file containing the TCP conversation you want to inspect. Plain HTTP payload is readable; TLS traffic stays encrypted unless Wireshark has the required session keys.

Steps to open and analyze PCAP files using Wireshark:

  1. Choose File → Open in Wireshark.

    Reading an existing capture does not require a live capture or root access. Capture files can contain passwords, cookies, and private payloads, so they need the same protection as the traffic they contain.

  2. Double-click your PCAP or PCAPNG file in the file chooser.

    Automatically detect file type handles supported capture formats. An empty Read filter loads all packets; a read filter can exclude packets while the file opens.

  3. Select a packet from the conversation you want to inspect.

    The Source, Destination, Protocol, and Info columns identify the endpoints and what the packet carries. Here, frame 4 contains an HTTP request and frame 8 contains its reply. A TCP packet labeled [SYN] starts a connection; it does not show that an application request succeeded.

  4. Expand the protocol layer of interest in the packet-details pane.

    The Hypertext Transfer Protocol layer exposes the request path and headers for plaintext HTTP. Other layers show IP addresses, TCP ports, and flags. The packet-bytes pane shows the selected packet in hexadecimal and ASCII.

  5. Type a display filter in the bar above the packet list.
    http

    The http filter matches decoded HTTP packets. For other traffic, tcp matches TCP packets, and ip.addr == 192.0.2.10 matches either direction for that IPv4 address. The address must match an endpoint in your capture.

  6. Press Enter to apply the display filter.

    A green bar indicates valid syntax; red indicates an invalid expression. After application, the status bar shows the displayed count alongside the total. Here, HTTP accounts for 2 of 12 packets. Zero displayed packets means no packets match, rather than an empty capture. A display filter hides packets without deleting them from the file.

  7. Choose Follow → TCP Stream from a TCP packet's right-click menu.

    An HTTP packet can also belong to a TCP connection. The Follow TCP Stream window reconstructs that connection's captured payload and changes the display filter to its stream, such as tcp.stream eq 0.

  8. Confirm that Follow TCP Stream shows the expected exchange between the endpoints.

    With Entire conversation and ASCII, this HTTP exchange shows the client's GET / HTTP/1.1, the server's HTTP/1.0 200 OK, and the response body. The request and reply are displayed in different colors. Missing replies or incomplete content can reflect a partial capture; encrypted or binary payloads will not read like plaintext HTTP. Closing the window leaves the stream filter in place, while Back restores the preceding filter.

Share this guide