roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
843 stars 112 forks source link

Static IP #350

Closed hetzbh closed 4 months ago

hetzbh commented 3 years ago

Hi,

Is there a way to set the IP to static and set the parameters? it's a bit frustrating to hunt the IP of each camera...

Thanks

roleoroleo commented 3 years ago

https://github.com/roleoroleo/yi-hack-MStar/issues/208

hetzbh commented 3 years ago

While the #208 is a good manual solution, it looks like the app itself does not update the IP, only the parts that you added (web GUI etc) are updated.

roleoroleo commented 3 years ago

I don't understand, sorry.

SeriousPat commented 2 years ago

208

Does not work: https://github.com/roleoroleo/yi-hack-Allwinner-v2/issues/347

roleoroleo commented 2 years ago

I tested it now and it works. Which service is not working?

SeriousPat commented 2 years ago

The script works. But after a day or soem hours, the dhcpd starts again and gets an ip from dhcp server. as here discribed: https://github.com/roleoroleo/yi-hack-MStar/issues/208

roleoroleo commented 2 years ago

Try this:

#!/bin/sh
touch /tmp/wifidhcp.sh
mount -o bind /tmp/wifidhcp.sh /home/app/script/wifidhcp.sh
touch /tmp/ethdhcp.sh
mount -o bind /tmp/ethdhcp.sh /home/app/script/ethdhcp.sh
killall -9 udhcpc
ifconfig wlan0 192.168.1.127 netmask 255.255.255.0 up
route add default gw 192.168.1.1
echo "nameserver 192.168.1.1" >> /tmp/resolv.conf
SeriousPat commented 2 years ago

I found out, that the IP Bug i reported has to with my DLAN AP. Without the DLAN AP, the Cams get everytime the right reserved ip from my router. but i can test it for you, if you want that

roleoroleo commented 2 years ago

Maybe there are 2 dhcp servers on your lan.

but i can test it for you, if you want that

Yes please, if you have time.

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.