Custom IP Address
Jump to navigation
Jump to search
It is possible to set a different IP address to access the MOD WebGUI of your device (and also SSH into it).
This is particularly useful if you own multiple MOD devices and want to access their WebGUI simultaneously.
For this guide example, let's change the IP address of our device from the standard 192.168.51.1 to 192.168.52.1
Note that you can define the address that better suits you as long as it respects the IP address format.
Example:
- SSH into your MOD device,
- Mount the filesystem in read-write mode by running the following command:
mount -o remount,rw /
- Set the new IP Address (it should not have the ".1" at the end) by running the following command with your old and new IPs:
sed -i "s|<write your old IP address here>|<write your new IP address here>|g" /etc/dnsmasq.conf /etc/network/interfaces
By following our example, moving from the standard 192.168.51.1 address to 192.168.52.1, we should run the following:
sed -i "s|192.168.51.|192.168.52.|g" /etc/dnsmasq.conf /etc/network/interfaces
- Sync and remount your filesystem and simultaneously reset the HMI of the device and reboot it by running:
sync && mount / -o remount,ro && sync && hmi-reset && reboot
- Your device will now reboot and after the reboot, the new IP address will already be active. Therefore, following our example, you should now type "192.168.52.1" in your browser to access the MOD WebGUI.
Final important notes:
- At least 1.10.4 is required to do this.
- Reinstalling or updating the MOD OS will revert the changes, back to using the default 192.168.51.1 IP