Skip to content

WLED doesn't connect to my router #11

Closed

Description

@schroepfer

I compiled your source WLED 0.5dev (build 1801102) for my NodeMCU, connect to the WLED-AP access-point and typed in my wifi-setup.
The NodeMCU doesn't connect to my Fritz!Box 7490.
The Wifi-Setup of WLED shows: "Client IP: Not connected ".
I als tested static IP. No connection.
Now i erased the flash with esptool and flashed WLED_0.6.2_ESP8266_RGB.bin.
Connect to WLED-AP, clicked on "Connect the module to your local WiFi here!", typed in my SSID and password, saved, reboot.
No connection to router. Scanning WiFi with the APP Fing: No WLED-IP.
I have 6 other NodeMCU and Wemos D1 mini pro in my homenet and all work fine, but not with your WLED-Software.

Activity

  1. Aircoookie commented on Apr 10, 2018

    @Aircoookie
    Member

    This is very weird. Maybe the software has set incorrect default values after the flash erase. Can you confirm for me that the "Try connecting before opening AP for" option in the WiFi settings just above the Client IP is set to at least 30 seconds (32 should be default)? That option sets how long the module waits for a connection to the router before assuming failure. Less than 10 sec. will not be able to connect.

  2. schroepfer commented on Apr 10, 2018

    @schroepfer
    Author

    this ist set to 32s.
    I setup a new WiFi-Net with an other SSID on an Repeater. It connects!

    PC-192-168-178-44 | 192.168.178.44 | DC:4F:22:13:31:7A | WLAN 11 Mbit/s

    But when i connect to 192.168.178.44 in the browser i get a timeout and no connection.

  3. Aircoookie commented on Apr 10, 2018

    @Aircoookie
    Member

    Ok, I need to say I'm quite stumped on this one, sorry. A Fritzbox (6490) is also used by me without problems for >10 ESPs running WLED. I'll think about it some more. However, I have no idea what causes this... Judging from the previous issues you posted, you had it working before. Did you use a different version of WLED for that? Only thing I can suggest is to reboot your router and make sure there is no typo in the SSID or password (i bet you already double-checked that though), but I think it's really unlikely that is the problem... Again, sorry that you run into all these issues attempting to use my program :(

  4. schroepfer commented on Apr 10, 2018

    @schroepfer
    Author

    I checked the typo!
    I tried it with V 0.5 and 0.6.2. I will try it again later.... Thank you!

  5. Aircoookie commented on Apr 10, 2018

    @Aircoookie
    Member

    Thank you for the info!
    I just remembered a peculiarity with the ESP8266 that might cause or amplify the effect this issue has. After you uploaded new firmware via USB (OTA is unaffected) using e.g. the Arduino IDE or esptool, the ESP can't reboot. Once you enter the WiFi data and save, it attempts to reset, but can't do that. You'd need to disconnect it from power once and plug it back in after uploading new firmware via USB for those self-resets to work.
    However, this still doesn't explain why the connection doesn't work properly with your Repeater. Only thing I could think of is the repeater having a separate firewall or a different subnet than your browser. However I don't think this is the case since most home repeaters only act as a WiFi AccessPoint.

  6. schroepfer commented on Apr 11, 2018

    @schroepfer
    Author

    I always press the reset-button or unplug power after uploading code to the ESP.
    The connection doesn't work properly with my Repeater and router. (Connection sometimes, but timeout after access in browser)
    I tested a static IP in WLED setup as well. No success.
    No logical behavior. I think, i give up.

  7. d-works42 commented on Apr 11, 2018

    @d-works42
  8. schroepfer commented on Apr 11, 2018

    @schroepfer
    Author

    I tested it with a new WEMOS D1 mini Pro and a new NodeMCU.

  9. d-works42 commented on Apr 11, 2018

    @d-works42
  10. Aircoookie commented on Apr 11, 2018

    @Aircoookie
    Member

    I was also going to suggest trying a different ESP. However, I still cannot believe how it could not work since the WiFi connectivity is the most basic feature of WLED and it worked reliably for many years, projects and users already. Maybe it's a bug in the WiFi library that doesn't "like" some subnets or something. Again, I'm so sorry that the project doesn't work for you and that you wasted so much time trying to get it to work. :( If you are looking for a similar project, this one might be worth a try: https://github.com/toblum/McLighting . I will keep this issue open since it is unresolved and will notify you once something is changed. Just to be clear, other WiFi projects with your ESP8266 work, correct?

  11. schroepfer commented on Apr 11, 2018

    @schroepfer
    Author

    "Just to be clear, other WiFi projects with your ESP8266 work, correct?"
    Yes. I flashed ESPeasy on the same ESP's to test the hardware. It worked correct.

  12. MopheusDG commented on May 29, 2018

    @MopheusDG

    Christian, could this be related to the AP Channel ? I was checking the code and I saw your AP is using channel 1 (not available in all regions).

    Just wondering...

  13. Aircoookie commented on May 29, 2018

    @Aircoookie
    Member

    As far as I know, the ESP8266/32 supports the AP on all channels 1-13 regardless of location. It is the responsibility of the user not to use any channels that are not legally allowed in their country. However, channel 1 should work in any region. If not, you could change it in the settings. However, schroepfer's issue was not with the AP, but with the connection to the home network.

    You however brought me to an idea! It may be the case that the ESP can't manage a connection to a network operating on the same channel as the WLED-AP. That may be logical because of interference. I'll try to set the AP channel to the channel of my network to test it out!

  14. zwiebelslayer commented on Mar 26, 2019

    @zwiebelslayer

    I have the same problem with a Fritz Box 7490. WLED just doesnt connect to it, but other programs with WIFI work just fine. I am using a Wemos D1 mini.

  15. sansillusion commented on Mar 26, 2019

    @sansillusion
  16. 10 remaining items

  17. luiguii57 commented on Nov 4, 2020

    @luiguii57

    Morning you all.
    Was wondering if the no connection issue has been resolved.
    Couple of days ago I upgraded my router to the new AT&T BGW320 and now nine of my Nodemcu are working. The router is not assigning IP to any of them.
    I have re flash all of them and still same problem.
    Have spoken to AT&T tech and have been unable to find the problem
    We did disabled the 5ghz leaving only the 2.4ghz able.
    Tried reflashing using the last 4 version and none correct the problem
    Please help as I am depending on them to work to control myself house Christmas lights
    Thanks

  18. Aircoookie commented on Nov 4, 2020

    @Aircoookie
    Member

    Don't know why that could happen... sorry. Does the password contain special characters? Does the WLED-AP re-open after a few minutes or does nothing happen at all?

  19. Stenvk commented on Nov 4, 2020

    @Stenvk

    Hi, i also had (still have but I found a workaround) this problem. The method I used to fix it is by setting up an old router as a stand alone wifi network and connecting it with an ethernet cable to my internet. I can control my leds on my normal 2.4 ghz and 5ghz without any issues now.

  20. luiguii57 commented on Nov 4, 2020

    @luiguii57
  21. luiguii57 commented on Nov 5, 2020

    @luiguii57
  22. Stenvk commented on Nov 5, 2020

    @Stenvk

    I can't give you step-by-step details but you can probably find some info online with the model you have. Its basically an acces point but with its own wifi network (so you will have your regular wifi and the wifi from the ap). (also I didn't do any research but just plugged it in configured it normally and it just so happened that I can control wled on all my wifi networks)
    I hope this will help

  23. luiguii57 commented on Nov 5, 2020

    @luiguii57
  24. added a commit that references this issue on Nov 28, 2020
  25. Airyzz commented on Sep 17, 2021

    @Airyzz

    Hi, sorry to revive an old thread, but has anyone found an actual solution to this problem that doesnt require two routers? I have also come across this problem, running on an esp8266 (d1 mini) trying to connect to my wifi, which is also a FRITZBox 7490. I have another instance of wled running on a different board which has always worked perfectly, so I dont see why this board doesn't like it. Flashing Tasmota to the esp as a test worked fine, and was able to connect to the internet no problem, so it must be an issue with WLED and not the board right?

  26. klrock commented on Dec 16, 2021

    @klrock

    I was following this discussion as I was having very similar issues and today I found the fix for my problem. I had noticed that when I tried to access the AP that I could not open it, but I could examine it's properties in Settings. To my surprise, the assigned IP address was now occupied by my wifi controller. Then I noticed that the available wifi list showed that Npcap Loopback Adapter was my current wifi connection rather than my TP-Link router. I think Npcap Loopback Adapter was from some network sniffer I tried in the past. Anyway, I deleted it in Device Manager and all is fine now. Don't know if this will help others but wanted to share.

  27. sbuxreg commented on Mar 2, 2022

    @sbuxreg

    I have a nixie tube clock with an ESP8266 on board. I have the same problems with the BGW320 i cannot get it to stay connected consistently. The only solution I was able to come up with was using an old asus router I had laying around as an AP. The clock stays connected to the AP like a champ.

  28. added 2 commits that reference this issue on Aug 18, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions