wz_mini_hacks icon indicating copy to clipboard operation
wz_mini_hacks copied to clipboard

Ability to set a static IP address on device (not DHCP reservation)

Open sfrappier opened this issue 1 year ago • 18 comments

Thank you for the awesome solution - I really appreciate all the work that has been tackled.

I'd like to understand the ability or manner in which you configure a camera to use a static IP address set or assigned upon boot and persisted over time. I have an environment in which I do not allow for DHCP leases for my cameras. There are a multitude of reasons as to why someone would like to do this, but I have never seen a documented way to tackle this with mini hacks.

I have tried the script path in rc.local.d to run ifconfig to manually assign at address. This works for a time as eventually DHCP runs and a lease is found (DHCP does run but only generally with phones and other devices) and it resets the IP address config and I loose the static assignment.

Does someone here understand the DHCP startup process, and what config files may be needed (and startup scripts) in order to add a small feature to conditionally set a static IP if defined in the config file? Basically, if static IP set to true then run ifconfig to assign along with route add for the default gateway if defined...

I'd be more than happy to port this back but just need some guidance and understanding as to why it hasn't been implemented...Dafang and most other cameras I've worked with have had this ability and it's always a shortcoming of the Wyze products that I was hoping mini would address.

Let me know if there is a better forum for this request.

sfrappier avatar May 10 '24 02:05 sfrappier