Skip to content

Set static IP address

roleo edited this page Aug 21, 2020 · 1 revision

Wiki page based on this post https://github.com/roleoroleo/yi-hack-MStar/issues/208#issuecomment-651939001 - thanks to @bonuzzz

To set a static IP address follow these steps:

  1. Create a folder "yi-hack" on the microSD card.
  2. Create a file (inside the prevoius folder) "startup.sh" with the following content:
#!/bin/sh
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
  1. Change the file permissions entering this command via ssh: chmod 0755 /tmp/sd/yi-hack/startup.sh
  2. Reboot your cam.

In this example the cam has IP 192.168.1.127 and the router has IP 192.168.1.1