Page 1 of 1

ESP32 static IP

Posted: Wed Aug 09, 2023 4:26 pm
by nmjb18
Hi,

Any one know how to fix (I.e. make static) the IP of an ESP32 device?

I would like to make sure that my app will always connect to my esp32 project after a network reboot. Currently the IP is dynamic and randomly assigned. Inorder to reconnect to my project I have to look up what's connected to the network and guess which one of the ESP32s is the one I want.

Cheers

M

Re: ESP32 static IP

Posted: Wed Aug 09, 2023 5:36 pm
by LeighM
Depending upon your router (DHCP server) you might be able to reserve a specific IP address for the ESP32

Re: ESP32 static IP

Posted: Wed Aug 09, 2023 8:34 pm
by nmjb18
Thanks LeighM, I understand that is an option.

I was looking for something like the first part of this article https://randomnerdtutorials.com/esp32-s ... duino-ide/ where the ESP32 is used to assign it's own IP on the network.