Detecting ESP8266 Traffic using Wireshark

Abstract: Filter Wireshark traffic to isolate ESP8266 devices by matching their Espressif OUI prefixes using eth.src matches.

Created: 2026-09-11 by

Use the Wireshark display filter eth.src matches "18:fe:34.*" to identify ESP8266 devices by their manufacturer OUI. This method isolates traffic from Espressif chips without requiring root access or complex network configurations. The filter works on both wired and wireless interfaces, provided the capture device sees the source MAC addresses.

Understanding the ESP8266 MAC Address Space

To effectively detect ESP8266 traffic, you must understand how these modules identify themselves on a network. Every network interface card (NIC) has a unique Media Access Control (MAC) address, which is a 48-bit number usually represented as six pairs of hexadecimal digits separated by colons. The first half of this address, known as the Organizationally Unique Identifier (OUI), is assigned to the manufacturer by the IEEE. Espressif Systems, the maker of the ESP8266 and ESP32 series, holds several OUI blocks. The most common prefix for ESP8266 modules is 18:FE:34. However, it is crucial to note that manufacturers often use multiple prefixes. Other valid prefixes for Espressif devices include 04:C5:20, 10:BE:CE, and 3C:71:BF. Therefore, relying on a single OUI might result in missed detections if your specific module uses a different batch identifier. The previous error involved using invalid syntax like eth.addr matches. In Wireshark, eth.addr is not a standard field for filtering because it does not exist in the protocol tree. You must specify whether you are looking at the source (eth.src) or destination (eth.dst) address. Additionally, the matches operator requires regular expression syntax, whereas the == operator is used for exact string matching. Using == with wildcards will fail, while matches allows for pattern recognition, which is essential when dealing with varying suffixes in MAC addresses. How to Monitor Wi-Fi Network Traffic: Check Your Network Card Capabilities explains the foundational steps required before you can even see these packets. Ensure your network adapter is in monitor mode if you are capturing wireless traffic, as managed mode may drop certain control frames or hide direct device-to-device communications.

Constructing the Correct Display Filter

Wireshark provides two types of filters: capture filters and display filters. Capture filters are applied during the recording process and reduce storage overhead but cannot be modified after the fact. Display filters are applied to already captured data and are more flexible for analysis. For detecting ESP8266 traffic, display filters are generally preferred because they allow you to refine your search without restarting the capture. The correct syntax for filtering by source MAC address using a regular expression is:
eth.src matches "18:fe:34:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}"
This expression breaks down as follows:
  • eth.src: Targets the source Ethernet address field.
  • matches: Invokes regular expression comparison.
  • "18:fe:34:": Anchors the match to the Espressif OUI. Note that hex letters should be lowercase in the regex for consistency, though Wireshark is generally case-insensitive for MAC addresses.
  • [0-9a-f]{2}: Matches exactly two hexadecimal characters for each remaining byte of the MAC address.
If you want to catch all Espressif devices regardless of the specific OUI block, you can combine multiple prefixes using the or operator:
(eth.src matches "18:fe:34.*") or (eth.src matches "04:c5:20.*") or (eth.src matches "10:be:ce.*")
The asterisk (*) in the regular expression acts as a wildcard, matching any sequence of characters following the OUI. This is safer than hardcoding the full MAC structure if you are unsure about the exact format of the remaining bytes.

Applying the Filter in Wireshark

Once you have constructed the correct filter, applying it is straightforward. Open Wireshark and start a capture on your desired interface. In the filter bar at the top of the window, paste your expression and press Enter. Wireshark will instantly hide all packets that do not originate from an ESP8266 device. If you are analyzing a large pcap file, applying this filter helps isolate IoT-specific chatter from general web traffic. You can then examine the payload of these filtered packets to understand what protocols the ESP8266 is using. Common protocols include MQTT, HTTP, or proprietary UDP streams. For users who need to merge traffic from different sources, such as LAN and Wi-Fi, refer to How to Merge LAN and WIFI Traffic through a Router for Packet Capture. This technique ensures that you do not miss ESP8266 devices communicating over the wired network segment while your primary capture point is on the wireless side.

Troubleshooting Common Issues

Even with the correct filter, you might encounter situations where ESP8266 traffic is not visible. First, verify that your network interface is actually seeing the traffic. If you are on a switched network, the ESP8266 might be communicating directly with a cloud server, and your machine is not in the path of those packets. Promiscuous mode helps but does not guarantee visibility of unicast traffic destined for other hosts. Second, check for ARP requests. ESP8266 devices frequently broadcast ARP requests to resolve IP addresses. These broadcasts are visible to all nodes on the local subnet. Filtering for arp alongside your MAC filter can help confirm that the device is alive on the network. Finally, ensure that your Wireshark version is up to date. Older versions may have bugs in the regular expression engine or in the parsing of Ethernet headers. If the filter returns no results despite knowing the device is active, try clearing the filter and manually inspecting the Ethernet header of a known packet to verify the MAC address format.

Frequently Asked Questions

Why did my previous filter return zero results?

The most likely cause is using invalid syntax like eth.addr matches, which is not a recognized field in Wireshark. You must use eth.src or eth.dst to target specific MAC address fields. Additionally, ensure you are using the correct OUI prefix for your specific hardware batch.

Can I filter for ESP32 devices using the same method?

Yes, but you must update the OUI prefix. ESP32 devices often share OUIs with ESP8266, but some newer batches use different prefixes. You should consult the IEEE OUI lookup tool for the latest Espressif assignments and add them to your regular expression using the or operator.

Does this filter work for IPv6 traffic?

No, this filter operates at Layer 2 (Data Link Layer) and examines MAC addresses, which are independent of the network layer protocol. It will catch ESP8266 traffic regardless of whether it is using IPv4 or IPv6, as long as the Ethernet frame contains the source MAC address.

What if the ESP8266 is behind a NAT router?

If the device is behind a NAT router, its private MAC address will be replaced by the router's MAC address for external communications. This filter will only detect traffic on the local subnet. To see external traffic, you would need to capture on the router itself or configure port forwarding rules to route traffic through your monitoring machine.

Is there a way to automate this detection?

You can save your display filter as a custom profile in Wireshark for quick access. For automation, you can use command-line tools like tshark with the same filter expression to export only ESP8266 packets to a separate file for further analysis or logging.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More