Two TCP connections between the same hosts can look alike in a packet list. In Wireshark on the Linux desktop, adding a column for the TCP stream index lets you see which connection each packet belongs to.

Wireshark assigns a stream index to each TCP conversation in a capture. Packets from the same conversation share that number, and the column is blank for packets that lack the field.

Wireshark saves the column in the active configuration profile. The column remains available when you open a different capture with that profile.

Steps to add a column in Wireshark:

Start with a saved capture open in Wireshark using the Default configuration profile, with TCP packets in the packet list and the packet details pane visible. The screenshots use web-traffic.pcapng.

  1. Select a TCP packet in the packet list.
  2. Expand Transmission Control Protocol in the packet details pane if it is collapsed.
  3. Right-click the TCP field you want to show as a column, such as Stream index.
  4. Choose Apply as Column in the field's context menu.
  5. Drag the horizontal scrollbar below the packet list to the right until the new column's heading and the selected packet's value are visible, if the column is cut off.
  6. Confirm that the new column's value for the selected packet matches the field in the packet details pane.

    The selected packet here shows 1 in the Stream index column and [Stream index: 1] in the TCP details.

Share this guide