change the IP

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

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: 601
Joined: Mon Mar 14, 2022 3:20 pm
Location: Ingolstadt/Germany
Has thanked: 91 times
Been thanked: 412 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: 31
Joined: Thu Dec 07, 2023 9:32 pm
Location: Germany
Has thanked: 1 time

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