 			server->send(204, "text/plain", "No WLAN found");
 			log_dbg("No WLAN found\r\n");
 		}
+	});
+	server->on("/ip", HTTP_GET, []() {
+		String ipstr = String();
+		if((WiFi.getMode() & WIFI_STA))
+			ipstr = WiFi.localIP().toString();
+		else
+			ipstr = WiFi.softAPIP().toString();
+		server->send(200, "text/plain", ipstr);
+		log_dbg("");
+		LOG_SERIAL.println(ipstr);
+		ipstr = String();
 	});
 
 	server->on("/", handleRoot);

	}
	output += "]";
	server->send(200, "text/json", output);
}

static void handleRoot(void)

			message += " " + server->argName(i) + ": " + server->arg(i) + "\n";
		}
		server->send(404, "text/plain", message);
		message = String();
	}
#endif
}
