192.168.4.1 — ESP32 / ESP8266 Access Point IP
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
| Scenario | What Happens |
|---|---|
| First-time smart home device setup | Device 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 WiFiManager | WiFiManager library puts device in AP mode when no saved WiFi is found. Configuration portal at 192.168.4.1 |
| ESPHome initial provisioning | ESPHome devices use a captive portal at 192.168.4.1 for WiFi configuration |
| Tasmota firmware | Factory Tasmota creates "tasmota-XXXX" AP. Connect and browse to 192.168.4.1 for WiFi setup |
| OTA update server | Some ESP projects host an over-the-air firmware update page at 192.168.4.1 in AP mode |
| Custom Arduino/MicroPython sketch | Any sketch that calls WiFi.softAP() without specifying a different subnet |
Accessing an ESP32/ESP8266 at 192.168.4.1
- Power on the ESP device (it broadcasts a WiFi network, typically named after the project or firmware)
- On your phone or computer, connect to the ESP's WiFi access point (usually no password, or a simple default like "12345678")
- Once connected, open a browser and go to 192.168.4.1
- The configuration portal or web interface appears
- For most IoT devices: enter your home WiFi name and password to provision the device onto your network
- 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:
- Connect to the tasmota_XXXXXX network
- Browser should auto-redirect to 192.168.4.1 (captive portal)
- If not, manually go to 192.168.4.1
- Click on your home WiFi network in the list and enter the password
- 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.