Skip to content

WLED fails to connect to network with subnet mask greater than /24 #4525

Closed

Description

@SpeedyGoneZales

What happened?

WLED 0.15.0 fails to connect to a network with a subnet mask greater than /24 (255.255.255.0), e.g. /22 (255.255.252.0).
This is the case both with a manually set address and via DHCP.

To Reproduce Bug

On router, create a network, e.g. 172.20.0.0/22, assign a block of DHCP leases (or don't) and assign that network to the WiFi.
The router shows WLED associating with the WiFi, but even with a static address, it is unable to communicate.

Expected Behavior

I'd expect WLED to be able to communicate in all IPv4 address spaces.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.15.0 (build 2412100)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

I tried to get logs, but according to https://github.com/Aircoookie/WLED/issues/1261 and https://wled.discourse.group/t/wled-not-connecting-to-wifi-where-are-logs/11716/6 this is not supported.

Anything else?

No response

Code of Conduct

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

Activity

  1. netmindz commented on Jan 28, 2025

    @netmindz
    Member

    Please can you also try the esp32_v4 bin from the nightly release?

  2. SpeedyGoneZales commented on Jan 29, 2025

    @SpeedyGoneZales
    Author

    No immediate luck, again it gets no address from DHCP and is not reachable when a static IP is assigned.
    Is there a way to tell whether the WiFi is connected (as opposed to an address assigned)?
    There may be an additional issue with the WPA3 passphrase containing spaces - need more time to test.
    Btw. the WiFi scan froze in the nightly when I tried it.

  3. blazoncek commented on Jan 29, 2025

    @blazoncek
    Contributor

    FYI WLED does not use any special WiFi or Ethernet handling. You may need to open an issue for underlying Arduino's WiFi class or ETHClass libraries (those use Espressif proprietary WiFi implementation on ESP devices).

  4. added
    externalNot part of WLED itself - an external plugin/remote etc.
    on Jan 29, 2025
  5. gcdinsmore commented on Jan 30, 2025

    @gcdinsmore

    I've noticed something similar. But I've got a /24 subnet mask. If I restart the esp32, it will normally connect.

    ESP32-S3-Nano
    WLED from master branch a few days ago
    Aged, but standard WiFi router

  6. SpeedyGoneZales commented on Feb 2, 2025

    @SpeedyGoneZales
    Author

    Ok, it seems there is a compatibility issue with router firmware Mikrotik RouterOS versions 7.17.0 and 7.17.1 (a case is open under SUP-178146).
    WLED is connecting successfully to the /22 network using a backup device with 7.16.2.
    Can also confirm that special characters in the passphrase are not the culprit.

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

    bugexternalNot part of WLED itself - an external plugin/remote etc.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions