Prepare
Embedder uses your installed Wireshark and TShark. Wireshark isn’t bundled with Embedder.- Install Wireshark, including TShark.
- Set up capture permissions for your operating system:
- Windows: Install Npcap from the Wireshark installer. Embedder finds Wireshark under Program Files without a
PATHentry. - macOS: Install Wireshark’s ChmodBPF package. Embedder finds
Wireshark.appin/Applicationsor~/Applications. - Linux: Install your distribution’s Wireshark and TShark packages, and give
dumpcapcapture permissions.
- Windows: Install Npcap from the Wireshark installer. Embedder finds Wireshark under Program Files without a
- For a custom install location, set
EMBEDDER_TSHARK_PATHto the TShark executable. Restart Embedder after you change it.
Record from the Packets tab
Run Embedder: Open Embedder Monitor, select +, then choose Packets under Views. Embedder selects the interface that carries your computer’s default route, and the tab shows Start capture. If it can’t pick one, the tab shows Set up packet capture instead: choose an interface under Choose the entry interface. If the project already has recordings, the tab opens on a saved one. A recording holds only the traffic that reaches the selected interface. On a switched network, traffic between the board and another device doesn’t reach your computer unless you use port mirroring, monitor mode, or an extcap source.- Check the interface chip at the start of the toolbar. It must name the interface that carries the board’s traffic. Select the chip to choose another one.
- Optional: enter your board’s IP address or hostname in Target to record only traffic to and from the board.
- Select Start capture, then make the board generate traffic, for example by resetting it.
- Select Stop capture to save the recording.
Choose another interface
The interface chip lists connected Wi-Fi and Ethernet interfaces under Recommended and Available hardware. To show the rest, including loopback, disconnected adapters, and Wireshark extcap sources, choose More interfaces from the ⋯ (More packet actions) menu. Choose Refresh interfaces from the same menu after you plug in an adapter.Narrow the capture
Set these before you start:- Target takes the board’s IP address or hostname, and a port after a colon. Leave the port empty to record every port.
- Find devices, in the More packet actions menu, fills the Target list with the devices seen on the selected Wi-Fi or Ethernet interface. Choose one to make it the target.
- Scan ports, in the same menu, checks the target for open TCP ports and lists them in the port field. Choosing a found device, or pressing
Enterin Target, also scans its ports. A scan connects to about a thousand TCP ports on the target, so scan only devices you’re allowed to test. - A capture filter limits what’s recorded. Select Capture settings, the sliders button in the toolbar, and enter a Wireshark capture filter in Filter, such as
tcp port 443. Embedder combines it with the target and port.
Capture settings
Capture settings opens the Settings panel. Set it up before you start, because the panel can’t be changed while recording.
The Workspace profile is saved in
.embedder/wireshark in your project, in Wireshark’s own filter and coloring file formats.
Inspect a capture
Select the history icon (Saved captures) in the toolbar and choose a recording. The views across the top show the capture from different angles:
Statistics and Compare are in the More packet actions menu. Statistics shows traffic over time, protocols, conversations, and Wireshark’s expert information. Compare shows the difference in each protocol’s packets and bytes between two saved captures, so it needs at least two. Selecting it opens the Settings panel, where you choose the second capture in Compare with.
To narrow the packet table, enter a Wireshark display filter in the display filter box beside the views, such as
mqtt || dns, and press Enter or select Apply. Display filters apply to saved captures. To keep a filter, open Capture settings, name it in Save as under Display, and select Save display filter. Use the Saved menu in the box to reapply it.
To search the loaded packets by text instead, use Search loaded packets… below the table. The table shows 500 packets at a time. Select Show more packets to load more.
Protocol and hex details
Select a packet to open its details, headed Packet # and the packet number. They show the protocol layers with their decoded fields, such as Ethernet addresses, IP TTL, and TCP sequence numbers and flags. The bytes pane below shows the raw frame in hex. When a packet looks like a retransmission, reset, or error, the details show Expert information above the fields. Full protocol details and bytes are available after you stop and save the recording.Streams
Select Follow in the packet details to open the packet’s TCP or UDP conversation in Streams, or open Streams and choose one under Connections. Choose Text or Hex for the Payload format. Text works well for HTTP, JSON, and other readable protocols, and replaces the values of HTTP authorization and cookie headers with[redacted]. Hex shows binary protocols byte for byte.
Stop the recording before you decode stream payloads.
Playback
Use the playback bar in the Overview, Timeline, or Packets view to replay a saved capture at its original timing. You can rewind, step back or forward 5 seconds, and play or pause. Set Playback speed from 0.25× to 4×. The views update to the traffic up to the current playback position.Where captures are saved
Embedder saves each recording as acapture.pcapng file in its own folder under .embedder/captures in your project. Recordings you start from the Packets tab and recordings Embedder starts for you are saved in the same place. Both appear under Saved captures, and Embedder can analyze either kind. Open a PCAPNG file in Wireshark when you need its full feature set.