Local Network IP Address (DNS) Reservation + ESP32 WiFi

Use this section to discuss your embedded Flowcode projects.
Post Reply
User avatar
canary_wharfe
Posts: 135
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 3:54 pm
Has thanked: 15 times
Been thanked: 16 times

Local Network IP Address (DNS) Reservation + ESP32 WiFi

Post by canary_wharfe »

Has anyone met the situation where they want to reserve a specific IP address on the local network to permanently install an ESP32 module BUT the network also includes a WiFi extender to the base router?
Normally you can go into the router setup utility and reserve an IP address to a specific hardware MAC address and in the case of an ESP32 module it will be the base MAC addr of the ESP32 wireless. But when you have a WiFi extender in the network that unit also creates a virtual MAC address so when you go into the router setup menu and look at allocated IP addresses and associated MAC addresses you will see the ESP32 module has 2 separate entries with two different MAC addresses; one real and one virtual. So in terms of IP address reservation should I be reserving / allocating the IP address to the real MAC address or the virtual MAC address of the ESP32 module?

I realise this is probably a very unusual use case and probably no one knows, but thought I would throw this out here and see if I get any pointers from anyone who has created extensive Flowcode WebDev webserver projects with ESP32 modules permanently attached to their local network.
< The Flowcode 11 Pro Silicon Chipper >

Steve-Matrix
Matrix Staff
Posts: 1875
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 277 times
Been thanked: 443 times

Re: Local Network IP Address (DNS) Reservation + ESP32 WiFi

Post by Steve-Matrix »

I'm not an expert in this area, but I would think the real MAC address is what you need to use. I say this because I think the virtualisation will be something that is internally translated between the WiFi and the extender.

As I say, this isn't my field of knowledge and I'm making an (un?)educated guess.

chipfryer27
Valued Contributor
Posts: 1976
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 434 times
Been thanked: 648 times

Re: Local Network IP Address (DNS) Reservation + ESP32 WiFi

Post by chipfryer27 »

Hi

I don't think FC allows you to set a static IP on an ESP32 but it may be possible via IDE.

I don't really use ESP32's that much, but if I need to give a PIC or whatever IP connectivity, I do use the 8266 as a cost effective interface. However, and this took me by surprise, they often change their MAC addresses seemingly from a pool of four, so for me I assigned a static IP and then in my router set the DHCP pool addresses higher than my static range.

So if you can set your 32 with a static IP you may be able to do something similar.

Sorry I can't be of much help.

Regards

Post Reply