Skip to content

ESP32-S3 and C3 hostname #4586

Closed
Closed

Description

@b3-4r

What happened?

Hostname of WLED installed on C3 and S3 controllers is 'esp32s3-####', not 'WLED-servername' as is the case with older MCUs.

To Reproduce Bug

Install WLED on an s3 or c3 board using the unofficial webinstaller.

Expected Behavior

Hostname follows server description from UI settings page.

Install Method

Self-Compiled

What version of WLED?

WLED 0.16.0-alpha (build 2412040)

Which microcontroller/board are you seeing the problem on?

ESP32-S3

Relevant log/trace output


Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    cannot reproduce
    on Mar 5, 2025
  2. Rodney2K commented on Mar 6, 2025

    @Rodney2K

    the hostname of the WLED device is normally "wled-" plus the server description in user interface settings after saving the settings. After a cold restart (power loss) the hostname is "esp32c3-" plus the last 6 characters of the mac-adress.

    The device loses the hostname after power loss. see also see #4292

  3. blazoncek commented on Mar 6, 2025

    @blazoncek
    Contributor

    You are wrong. mDNS name is defined in WiFi settings, not UI settings.

  4. b3-4r commented on Mar 7, 2025

    @b3-4r
    Author

    mDNS name is different from the hostname as reported to e.g. the DHCP server

  5. blazoncek commented on Mar 7, 2025

    @blazoncek
    Contributor

    Only mDNS is used for communicating with device. Modified "serverDescription" as set for "hostname" is meaningless.

  6. Rodney2K commented on Mar 7, 2025

    @Rodney2K

    mDNS is different!

    Start-Situation:

    WiFi Settings:
    mDNS -> http:// testmdns .local
    Client IP: 192.168.188.191
    User Interface Settings:
    server description: WLED

    After configuration save:
    nslookup 192.168.188.191 ->
    Server: fritz.box
    Address: 192.168.188.1
    Name: wled-WLED.fritz.box
    Address: 192.168.188.191

    -> but after POWER CUT
    nslookup 192.168.188.191
    Server: fritz.box
    Address: 192.168.188.1
    Name: esp32c3-f0cac5.fritz.box
    Address: 192.168.188.191

  7. blazoncek commented on Mar 7, 2025

    @blazoncek
    Contributor

    Use mDNS explorer. It might be your Fritzbox is faulty and reports nDNS entries via DNS lookup. nslookup is used for regular DNS queries, not mDNS.

    EDIT: And BTW normally it would be .local for mDNS domain suffix.

  8. b3-4r commented on Mar 7, 2025

    @b3-4r
    Author

    .local is the mDNS address, the x.fritz.box addresses are FQDNs on a fritz.box network, construed as hostname.domain.tld, in their case by the fritzbox. Hostname or FQDN aren't usually something that can be used to access the webUI, rather a network-level identifier one would use e.g. to identify which devices are connected in a router's active DHCP client list.

    mDNS address and network node hostname are distinct, this issue doesn't pertain to mDNS address

    Image

  9. blazoncek commented on Mar 7, 2025

    @blazoncek
    Contributor

    Your best bet is to file a bug report with either Arduino framework or Espressif core WiFi/networking stack.
    Or Fritzbox, BTW it has been known to cause issues.

    On my own network, I do not see DNS addresses and DNS server is never populated with reverse or forward lookup from WLED devices. WLED does not explicitly do DDNS registration. All it does is advertises its presence via mDNS (2 TCP services, HTTP and WLED)

    BTW FQDN are resolved by the DNS server from zone files. If you did not add WLED devices into zone files then DNS cannot resolve those addresses. mDNS on the other hand can as it uses multicast and not zone files. If Fritzbox resolves WLED devices via DNS then it is the issue of Fritzbox and its DNS implementation.

  10. BBaoVanC commented on Mar 15, 2025

    @BBaoVanC

    I am having the same issue on cold boot! I am running Kea-DHCP4 for my DHCP, and the ESP is requesting esp32c3-9ccba8 as the hostname on DHCP connect, instead of the configured "Server description" in "User Interface" settings. Changing any of the Wi-Fi settings then "save & connect" fixes it, but if I do another cold reboot then it breaks again.

    I have mDNS disabled since I do not want to use it whatsoever, but enabling it has no effect (as I would expect).

    Using a QuinLED An-Penta-Mini which has an ESP32-C3. WLED 0.15.0 release, which was OTA updated from the stock firmware version (it is just unmodified WLED).

    I have a custom router setup so I can say for certain that it is the WLED device's fault for choosing the wrong hostname, not some different issue (I don't even deal with mDNS at all).

  11. added a commit that references this issue on Mar 15, 2025
  12. blazoncek commented on Mar 15, 2025

    @blazoncek
    Contributor

    Anyone interested in potential fix can check build artefacts from my fork. Click on commit hash above.

  13. b3-4r commented on Mar 15, 2025

    @b3-4r
    Author

    I am having the same issue on cold boot!
    I have mDNS disabled since I do not want to use it whatsoever, but enabling it has no effect (as I would expect).
    I have a custom router setup so I can say for certain that it is the WLED device's fault for choosing the wrong hostname, not some different issue (I don't even deal with mDNS at all).

    Same here on all 3 points.

  14. BBaoVanC commented on Mar 31, 2025

    @BBaoVanC

    Anyone interested in potential fix can check build artefacts from my fork. Click on commit hash above.

    Just tried it and it doesn't seem to have worked on my ESP32-C3.

  15. 7 remaining items

  16. github-actions commented on Oct 1, 2025

    @github-actions

    Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
    Thank you for using WLED! ✨

  17. added
    stale
    on Oct 1, 2025
  18. removed
    stale
    cannot reproduce
    on Oct 1, 2025
  19. added
    connectivity
    keep
    and removed
    external
    on Oct 3, 2025
  20. qistoph commented on Oct 5, 2025

    @qistoph

    There's a slight regression though: hostname changes now only apply on cold boot, rather than when saving & connecting to WiFi.

    Can confirm this is the case for my ESP32 C3 too.

    A reboot saving forced DHCP and DNS renewal. I haven't tried waiting for the DHCP lease to renew automatically.

  21. blazoncek commented on Oct 5, 2025

    @blazoncek
    Contributor

    Unfortunately my fix was abandoned since it also changed default hostname (which IMO is not correct/good in current implementation).

    There has been an update on that but I didn't follow the development. Unfortunately.

  22. netmindz commented on Oct 7, 2025

    @netmindz
    Member

    I wouldn't say abandoned @blazoncek , it's just awaiting testing isn't it?

  23. blazoncek commented on Oct 7, 2025

    @blazoncek
    Contributor

    @netmindz #4751 was closed without merging. I would call that "abandoned".

  24. softhack007 commented on Mar 15, 2026

    @softhack007
    Member
  25. added
    fixed in source
    on Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconnectivityfixed in sourcekeep

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions