Skip to content

ESP32 SoftAP Mode Clients Cannot Connect

DodaTech Updated 2026-06-26 1 min read

In this tutorial, you'll learn about ESP32 SoftAP Mode Clients Cannot Connect. We cover key concepts, practical examples, and best practices.

The Problem

ESP32 as Wi-Fi access point but clients fail to connect or get IP address errors.

Quick Fix

Wrong

#include <WiFi.h>
void setup() {
  WiFi.softAP("ESP32-AP");
}
Client connects but gets 'No IP Address' or 'Obtaining IP address' indefinitely.
#include <WiFi.h>
void setup() {
  WiFi.softAP("ESP32-AP", "password123", 1, 0, 4);
  Serial.print("AP IP: "); Serial.println(WiFi.softAPIP());
}
AP IP: 192.168.4.1
Clients can connect and receive IP from ESP32's DHCP server.

Prevention

Always set a password for production APs. Set the channel explicitly to avoid interference. Limit the number of clients (max 4 for reliable connections). Disable SSID broadcast if security is a concern. Use WiFi.softAPConfig() to set a custom subnet.

DodaTech engineers apply these same patterns when building Doda Browser's networking stack, DodaZIP's firmware packaging pipeline, and Durga Antivirus Pro's sensor communication layer.

FAQ

### How many clients can connect to ESP32 AP?

The ESP32 softAP supports up to 4 simultaneous clients in practice. More clients cause instability and packet loss.

Can I run station and AP mode simultaneously?

Yes. Call both WiFi.mode(WIFI_AP_STA) and configure both modes. The ESP32 shares one radio, so throughput drops.

Why do clients disconnect from the AP?

Power saving mode disables the AP radio periodically. Call WiFi.setSleep(WIFI_PS_NONE) to keep the radio always on.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro