Any possibility to manually set MAC and IP addresses from .env config files?

For a number of reasons, I prefer to have devices on my network have known static IPs and MAC addresses.

I know that for the ESP32, it’s pretty simple to set the IP and MAC addresses using standard Arduino framework libraries.

Does OpenMQTTGateway allow you to set those addresses?
I tried to search through the code but couldn’t find any advice declarations for them.

Yes at build time OpenMQTTGateway/main/User_config.h at f655f4fda0a19fc79edf197d3e0111c5635b8d7a · 1technophile/OpenMQTTGateway · GitHub

But this need to be defined along with the WiFi AP and password, see ESPWifiManualSetup

It is not available at runtime.

That lets you set the IP but not the MAC.
The Arduino esp32 framework allows you to set the MAC address to an arbitrary one.
You can then store it in flash.
I have done that in several of my own programs.

For me it’s useful to set the MAC address to a know quantity…