192.168.4.1 — ESP32 / ESP8266 Access Point IP

Connect to device AP then open: http://192.168.4.1

Why 192.168.4.1?

The ESP32 and ESP8266 WiFi libraries (both Arduino and ESP-IDF) assign 192.168.4.1 as the default gateway IP when the chip runs in Access Point (AP) mode. This is hardcoded in the SDK's softAP implementation — unless a developer explicitly overrides it, every ESP32/ESP8266 AP will use this address. The same address appears in billions of IoT devices worldwide because these chips power an enormous range of consumer electronics.

When You'll See This IP

ScenarioWhat Happens
First-time smart home device setupDevice creates its own WiFi AP. Connect to it, then go to 192.168.4.1 to enter your home WiFi credentials
ESP32/ESP8266 project with WiFiManagerWiFiManager library puts device in AP mode when no saved WiFi is found. Configuration portal at 192.168.4.1
ESPHome initial provisioningESPHome devices use a captive portal at 192.168.4.1 for WiFi configuration
Tasmota firmwareFactory Tasmota creates "tasmota-XXXX" AP. Connect and browse to 192.168.4.1 for WiFi setup
OTA update serverSome ESP projects host an over-the-air firmware update page at 192.168.4.1 in AP mode
Custom Arduino/MicroPython sketchAny sketch that calls WiFi.softAP() without specifying a different subnet

Accessing an ESP32/ESP8266 at 192.168.4.1

  1. Power on the ESP device (it broadcasts a WiFi network, typically named after the project or firmware)
  2. On your phone or computer, connect to the ESP's WiFi access point (usually no password, or a simple default like "12345678")
  3. Once connected, open a browser and go to 192.168.4.1
  4. The configuration portal or web interface appears
  5. For most IoT devices: enter your home WiFi name and password to provision the device onto your network
  6. After saving, the device restarts, connects to your home WiFi, and 192.168.4.1 is no longer accessible

ESPHome — Configuration Portal

ESPHome is a popular firmware for DIY smart home devices based on ESP chips. When an ESPHome device cannot find its configured WiFi (new device, WiFi password changed), it broadcasts a "ESPHome Fallback Hotspot" named after the device. Connect to it and browse to 192.168.4.1 for the provisioning portal. Enter your WiFi credentials and click Save.

Tasmota — Configuration at 192.168.4.1

Tasmota is open-source firmware for ESP-based smart plugs, switches, and bulbs. New or factory-reset Tasmota devices broadcast a "tasmota_XXXXXX" WiFi network. The steps:

  1. Connect to the tasmota_XXXXXX network
  2. Browser should auto-redirect to 192.168.4.1 (captive portal)
  3. If not, manually go to 192.168.4.1
  4. Click on your home WiFi network in the list and enter the password
  5. Save — Tasmota reboots and connects to your network. Find its new IP via your router's DHCP list

Programming ESP Devices — Changing the Default IP

If you are writing firmware and want to use a different AP IP, override it before calling softAP():

// Arduino ESP32/ESP8266 — custom AP IP
IPAddress apIP(192, 168, 100, 1);  // your preferred IP
IPAddress subnet(255, 255, 255, 0);
WiFi.softAPConfig(apIP, apIP, subnet);
WiFi.softAP("MyDevice-AP", "mypassword");

// Now accessible at 192.168.100.1 instead of 192.168.4.1

Security Note

ESP32/ESP8266 access points in their default configuration are open (no password) or use simple passwords. This is intentional for provisioning — you are expected to complete setup quickly and have the device join your secured home network. Do not leave devices in AP mode indefinitely. If you see an unknown ESP-type WiFi network in your area broadcasting for extended periods, it may indicate a misconfigured or abandoned IoT device.