All RainMachines get their IP address and Netmask using DHCP protocol. If you want to manually set the IP Address and Netmask, you need to login into the Rainmachine using the RainMachine REST API.
Note: For RainMachine HD the IP address and Netmask can be changed directly from the device screen. Go to Settings > System > WI-FI - Static IP and enable it. Complete all the cards with correct data and on the Network Prefix card put the corresponding prefix number according to your desired Netmask. You can check the entire chart with the prefixes here.
Logging into the Device using RainMachine REST API
First, we need to know the device IP address so we can log into the device using RainMachine REST API.
Your device IP can be found by accessing the mobile app: Settings > About - IP address or on the RainMachine Touch HD device itself by going to Settings > System > WI-FI.
You can use API page on the device itself by pointing your browser to:
https://rainmachine_ip:8080/api/4/ (mind the last /).
Click POST auth/login with your password filled in the text input below.
Note: More info on how to control the RainMachine through REST API can be found here.
Changing the IP address and Netmask
After logging into the device, scroll down and complete all the fields under POST provision/wifi/settings.
Here you can change the IP address and Netmask:
After that, press POST provision/wifi/settings and all new parameters will be saved.