Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
SpeedyGoneZales opened this issue Jan 28, 2025 · 5 comments
Closed
1 task done
Labels
bug external Not part of WLED itself - an external plugin/remote etc.

Comments

@SpeedyGoneZales
Copy link

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
@netmindz
Copy link
Collaborator

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

@SpeedyGoneZales
Copy link
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.

@blazoncek
Copy link
Collaborator

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).

@blazoncek blazoncek added the external Not part of WLED itself - an external plugin/remote etc. label Jan 29, 2025
@gcdinsmore
Copy link

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

@SpeedyGoneZales
Copy link
Author

SpeedyGoneZales commented Feb 2, 2025

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
Labels
bug external Not part of WLED itself - an external plugin/remote etc.
Projects
None yet
Development

No branches or pull requests

4 participants