ESP32 cannot see my Wi-Fi: it works on 2.4 GHz only

The common ESP32 and ESP8266 boards connect only to 2.4 GHz networks. A 5 GHz-only network will not appear.

What the message means

Many routers merge both bands under one name. If your router uses a 5 GHz-only name or forces band steering, the board may not see it.

Fix it in this order

  1. Check that your router has the 2.4 GHz band turned on.
  2. Give the 2.4 GHz band its own name if your router lets you split them.
  3. Run a Wi-Fi scan sketch and see which networks the board finds.
  4. Use a standard channel, such as 1 to 11, and WPA2 security for the simplest setup.
  5. Move the board closer to the router when testing.
  6. Type the name and password exactly, including capital letters.

Why it happens

The classic ESP32 and the ESP32-S2, S3 and C3 radios work on 2.4 GHz only, so a network that is 5 GHz only will never appear in a scan. A router that broadcasts both bands under one name will show up, but only the 2.4 GHz side can be joined.

Fix: enable the 2.4 GHz band on the router, or give it a separate name, and use channels 1 to 11 if your router offers a choice. Test with a phone hotspot set to 2.4 GHz before changing router settings.

If you see this, do this

You seeDo this
Network missing in the scanBand, channel or range.
Listed but will not connectSee the Wi-Fi will not connect page.

Wi-Fi will not connect, Wi-Fi keeps disconnecting.

Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.

Why this happens

The ESP32 family used in most hobby boards has a radio that works only on the 2.4 GHz band. A router has separate radios for 2.4 GHz and 5 GHz and may broadcast them under the same name. In that case the ESP32 sees the network and connects on 2.4 GHz. If the 5 GHz radio has its own name, or the 2.4 GHz radio is turned off, the board sees nothing to join.

Channels matter too. The 2.4 GHz band has channels 1 to 13 in many regions, and a router left on automatic may pick a high channel. Security settings can also matter: an older board or core may fail with a router set to WPA3 only.

How to confirm the cause

  • Run a scan sketch and print every network found with its channel and signal strength. If your network is missing, it is not being heard on 2.4 GHz.
  • Open the router settings and see if the 2.4 GHz radio is enabled. Check for a separate name.
  • Check the phone’s view. A phone on 5 GHz will show the network even if the board cannot.
  • Create a hotspot on a phone set to 2.4 GHz and see if the board finds it. This separates a router issue from a board issue.
  • Move the board within a metre of the router for the test.

Worked example

This scan sketch lists every 2.4 GHz network the board can hear. If your network is missing from the list, the fault is on the router side or in range, not in your connection code.

#include <WiFi.h>
void setup() {
  Serial.begin(115200);
  WiFi.mode(WIFI_STA);
  WiFi.disconnect();
  int n = WiFi.scanNetworks();
  for (int i = 0; i < n; i++) {
    Serial.printf("%s  ch %d  %d dBm\n",
      WiFi.SSID(i).c_str(), WiFi.channel(i), WiFi.RSSI(i));
  }
}
void loop() {}

Common mistakes

  • Looking for a network name that only exists on 5 GHz.
  • Typing the name or password with the wrong case or a trailing space.
  • Testing with the board far from the router or inside a metal box.
  • Hiding the network and then not setting the board to find a hidden name.

If this did not fix it

  • The router’s security mode. Try WPA2 on the 2.4 GHz band for a test.
  • A wrong country or channel setting on the router.
  • Weak power from the USB port, which makes the radio reset when it transmits.