This is probably a pretty basic question, but I tried the tutorial and reassigned my ESP32 a new IP Address. Like your tutorial, it worked. My question is, how do I use it? I tried typing the new IP Address in to my browser (after connecting to the ESP32) but nothing happens. My sketch seems to work only when I use the 192.168.4.1 (the original IP Address of my ESP32). I’m sure it’s operator error. Any suggestions?
Thank You – Charles
- What do you mean by it worked? Can you find your ESP connected to your network with the IP address that you’ve assigned?
- Did you assign the IP in the code or directly in your router?
Sorry. Your code will show the new IP address via the serial port. That works. I get the same output as your example (https://rntlab.com/module-12/esp32-static-fixed-ip-address/). When I reboot my ESP, the only way to connect to it, is via the original IP address (192.168.4.1) The new IP address 192.168.1.168 will not connect. Perhaps the problem is I’m not connecting to a network. I’m trying to use my ESP as a access point using ESP32WebServer.h. Not sure if that makes a difference. I did assign the IP in the code.
If you don’t assign an IP address, what’s the default IP address assigned to your ESP in your network?
The default IP is 192.168.4.1. In your sketch, we change the IP to 192.168.1.168. When I reboot and run the sketch, I get the same result as your demo. I up load another sketch, and my IP seems to return to 192.168.4.1.
But are you using this exact code? https://rntlab.com/module-12/esp32-static-fixed-ip-address/
Or you already modified one of my other projects to assign a fixed IP address? Because I’m not sure which code are you uploading to your board…