Skip to main content

Troubleshooting Husarnet on ESP32

In this document we describe problems Husarnet users stumbled into in the past. You might find the solution to your problem here, and also it is good resource to gain deeper understanding of the Husarnet system. If you do not see a solution you want, please let us know. Describe your problem and post it on Husarnet Community Forums or contact us at if you want to send any sensitive information.

What information to provide while posting problem report?

  • description of the problem and your test setup
  • Husarnet and ESP-IDF log, please make sure that you enable verbose Husarnet logs (HUSARNET_LOG_LEVEL_DEBUG option in menuconfig)
  • providing a minimal reproducible example is always helpful and speeds up the debugging process

It usually is a good idea to have a look at - both in the group/network config and element/device tabs. Some of the configuration issues are automatically highlighted there.

Reseting IPv6 address

Husarnet IPv6 address of each ESP32 is stored in the flash (NVS) under the husarnet prefix. If you want to generate a new IPv6 address for you ESP32 run: erase-flash inside the project folder to clear entire flash memory or use erase-region nvs to clear only the NVS partition.

Remember to flash the firmware again after erasing the flash!

High latency (ping)

If you experience high latency when pinging other devices in the Husarnet network, it might be caused by the Wi-Fi power saving mode. To disable it, add the following code snippet to your project:

#include "esp_wifi.h"


void app_main() {
// In order to reduce ping, power saving mode is disabled

Remember that disabling power saving mode will increase power consumption.