Josue.Today Logo Mark
Josue.todayAMBIENT LUMENS // DIY
BACK TO ALL ARTICLES
APIs & AutomationsOriginal Govee Post
❤️ 28 likes💬 19 replies

Intercepting Govee Desktop App’s Network Traffic using Wireshark 🦈

Josue Negron
Josue Negron2023 Govee Ambassador
Smart Home Automation • Georgia Tech CE
Intercepting Govee Desktop App’s Network Traffic using Wireshark 🦈

Hello again, and thank you for taking the time to learn more about the LAN API. Okay, so if you’ve been following along, you know that the Govee Desktop App leverages the LAN API. If you are completely lost, please read the first two posts, links are below. So in order to learn more about how the LAN API works, we are going to use a program called Wireshark. I’ve been using this tool for over 10 years now, and it’s powerful. It can also be intimidating to get started, but just follow along.

This series will cover the following topics: ➡️ LAN API 101: Govee Community Post #136755 ➡️ Intro to the Govee Desktop App Govee Community Post #137027 ➡️ Intercepting Network Traffic using Wireshark (this post) ➡️ UDP, who? How to send LAN API data using Packet Sender ➡️ Hands-on: Debugging Govee Home app ➡️ Final Exam: Switching Scenes using LAN API

Wireshark is a powerful network protocol analyzer that allows you to capture, inspect, and analyze network traffic. It can be used to troubleshoot network issues, debug software, and perform security analysis. When you start Wireshark, it captures all the network traffic that is passing through your network interface. It then displays the captured data in a user-friendly interface, showing you details about each packet, such as the source and destination addresses, the protocol used, and the data payload.

Wireshark can be used for a wide range of network analysis tasks, including:

  1. Troubleshooting network issues: By capturing network traffic, Wireshark can help you diagnose and fix network problems, such as slow performance, connection failures, or misconfigured devices.
  2. Debugging software: Wireshark can be used to debug software by examining the network traffic generated by an application. This can help you identify and fix issues related to network communication. *** Everyone who mentioned the Desktop App crashes, this is how you can figure out way its crashing, so follow along and maybe you can find the root cause of the crash and report it back to the Govee Developers***
  3. Analyzing network security: Wireshark can be used to detect and analyze network security threats, such as malware infections, packet spoofing, and unauthorized access attempts.
  4. Monitoring network performance: Wireshark can be used to monitor network performance by capturing and analyzing network traffic over time. This can help you identify patterns and trends in network usage, and optimize your network for better performance.

Overall, Wireshark is a versatile tool that can be used by network administrators, software developers, security professionals, and anyone else who needs to understand network communication in detail.

🦈 Downloading & Installing Wireshark

  1. First, go to the official Wireshark website at https://www.wireshark.org/ and click on the “Download Wireshark Now” button in the middle of the page.
  2. On the download page, choose the appropriate version for your operating system. Wireshark is available for Windows, macOS, and Linux. Just a reminder that the Govee Desktop App is only for Windows 10 and 11, however, if you want to follow along and play around with Wireshark on your macOS device feel free to do that as well.
  3. Once you have downloaded the Wireshark installer, run it on your computer. On Windows, this will be an .exe file that you can double-click to open. On macOS, it will be a .dmg file that you can mount and then double-click to open. On Linux, the installation process will depend on your distribution.
  4. Follow the on-screen instructions to install Wireshark. On Windows and macOS, you will be prompted to choose the components you want to install. You can leave the default options selected unless you have a specific reason to choose otherwise.
  5. Once the installation is complete, open Wireshark. On Windows and macOS, you can find it in your Start menu or Applications folder, respectively. On Linux, you can usually find it in your system’s package manager or by running the “wireshark” command in a terminal.
  6. In Wireshark, you will see a list of available network interfaces. These are the network adapters that Wireshark can capture traffic on. Select the interface that is connected to the same network as the device running the Govee Desktop App. You can usually identify the correct interface by its name, such as “Ethernet” or “Wi-Fi.”
  7. After selecting the correct interface, click the “Start” button in the Wireshark toolbar to begin capturing network traffic.
  8. Next, launch the Govee Desktop App and perform the actions that you want to inspect UDP traffic for. For example, if you want to inspect the traffic generated when the app sends commands to a Govee device, you might turn the device on or off, change its color, or adjust its brightness.
  9. While the app is running, Wireshark will capture all the network traffic that is sent and received on the selected interface. To filter the traffic to only show UDP packets from the Govee Desktop App, you can use a display filter.
  10. To create a display filter, click on the “Filter” field in the Wireshark toolbar and type the following filter: udp.port == 4003 || udp.port == 4002 || udp.port == 4001 You can also just do udp.port == 4003 since this will only display the commands from the Desktop App to the Govee devices.
  11. After applying the display filter, Wireshark will only show the UDP packets that match the filter. You can analyze the packets to see the data that is being sent and received by the Govee Desktop App.

That’s it! With Wireshark installed and running, you can inspect UDP traffic from the Govee Desktop App and gain insight into how it communicates with Govee devices on your network.

📹 Video Highlights & Demonstrations

Tags:#API#HomeAssistant#IoT
Try The New Tool

Create Custom Govee Themes in Seconds

Design dynamic gradients and sideload them directly into your Govee Home app using the DIY Theme Studio.

🎨 Launch Theme Studio ↗