Skip to main content
Record traffic from a network interface and inspect it in the Monitor’s Packets tab. You can also ask Embedder to start and stop a recording, read the packets, and follow a TCP or UDP conversation. Use it to check what a networked board sends: DHCP and DNS at boot, connections to a server, MQTT or HTTP payloads, and retransmissions or resets.

Prepare

Embedder uses your installed Wireshark and TShark. Wireshark isn’t bundled with Embedder.
  1. Install Wireshark, including TShark.
  2. Set up capture permissions for your operating system:
    • Windows: Install Npcap from the Wireshark installer. Embedder finds Wireshark under Program Files without a PATH entry.
    • macOS: Install Wireshark’s ChmodBPF package. Embedder finds Wireshark.app in /Applications or ~/Applications.
    • Linux: Install your distribution’s Wireshark and TShark packages, and give dumpcap capture permissions.
  3. For a custom install location, set EMBEDDER_TSHARK_PATH to the TShark executable. Restart Embedder after you change it.
If Wireshark or a capture permission is missing, the Packets tab shows the setup steps. For a missing permission, it also offers Open Npcap download on Windows, Install ChmodBPF on macOS, or Copy setcap command on Linux. On macOS, the button reads Open capture privilege docs when Embedder can’t find the ChmodBPF installer. After you finish the steps, restart Embedder and select Refresh interfaces. In VS Code, the first time the tab finds a setup problem, it also sends Fix Packet Monitor setup to your chat so Embedder can help you finish the setup. Opening and analyzing saved captures needs TShark but doesn’t need capture permissions.

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.
  1. 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.
  2. Optional: enter your board’s IP address or hostname in Target to record only traffic to and from the board.
  3. Select Start capture, then make the board generate traffic, for example by resetting it.
  4. Select Stop capture to save the recording.
While recording, the packet table follows the newest packets and shows Live. The table is a preview that samples busy traffic; the saved recording is complete. Select Pause follow to hold the table still and look at a packet. Select Resume follow to jump back to the latest traffic. Recording continues while follow is paused. Only one packet capture runs at a time. If you ask Embedder to capture while a recording you started from the tab is running, Embedder’s capture takes over. Packet capture doesn’t hold the board, so Embedder can flash or debug the target while traffic is recorded.

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 Enter in 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 a capture.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.

Ask Embedder to capture traffic

Embedder can list interfaces, start a recording, check its status, and stop it. It can also read, filter, and summarize saved captures, inspect a single frame, and follow a TCP or UDP stream. Packet capture counts as a hardware action, so Embedder asks for approval before it uses it. Name the interface, what to filter on, how long to record, and what you want to learn:

Analyze captures in a script

For a repeated check, ask Embedder to write a hardware script that reads saved captures. Embedder prepares a capture for script analysis before it runs the script; this doesn’t happen when a recording stops. If you run the script yourself and it reports that the capture needs analysis sidecars, ask Embedder to prepare that capture, then run the script again.

Troubleshoot

Last modified on November 13, 2026