Page 1 of 1

change the IP

Posted: Mon Feb 26, 2024 5:20 pm
by medo
Hi,
where can I change the IP in the code from 192.168.4.1 to 192.168.8.1 on the esp32 web-interface ??

Re: change the IP

Posted: Mon Feb 26, 2024 9:09 pm
by uhi22
This is not obvious. I found an answer here: https://www.esp8266.com/viewtopic.php?f=29&t=12124
So before the line with
WiFi.softAP(....)
add a line
WiFi.softAPConfig(apIP, IPAddress(192, 168, 8, 1), IPAddress(255, 255, 255, 0));
Not sure about the subnet mask, just copied the example.

Re: change the IP

Posted: Mon Feb 26, 2024 10:05 pm
by medo
I have the big problem on my esp32, that the firmware doesn't work, I don't have wifi (https://github.com/jsphuebner/esp32-web-interface)
but with this Firmware (https://github.com/Bedz01/esp32-web-interface-port), i have wifi, but no web interface, only when I access the wifisettings aka 192.168.4.1/wifi, I really don't know whats wrong here