change the IP

Discussion about various user interfaces such as web interface, displays and apps
Post Reply
User avatar
medo
Posts: 65
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 3 times

change the IP

Post 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 ??
User avatar
uhi22
Posts: 950
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 143 times
Been thanked: 535 times

Re: change the IP

Post 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.
User avatar
medo
Posts: 65
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 3 times

Re: change the IP

Post 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
Post Reply