In which file are the credentials / IP-Adress / Path stored? - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: Community (https://moodeaudio.org/forum/forumdisplay.php?fid=18) +--- Forum: General Discussion (https://moodeaudio.org/forum/forumdisplay.php?fid=21) +--- Thread: In which file are the credentials / IP-Adress / Path stored? (/showthread.php?tid=6361) |
In which file are the credentials / IP-Adress / Path stored? - muddiver - 03-28-2024 Hi folks! i need to change the IP-Adress of my NAS / Pihole, cause i messed up to use a IP that is NOT in the DHCP-Range, so i want to change the IP-Adress which i entered in MoOde as Sambashare. I had problems when the NAS was down booting MoOde was veeeery slow, maybe i was too impatient... So i am a bit anxious that Moode will not boot when i change the IP-Adress of the NAS. I thought the best way to change the IP Adress is to boot up all MoOde devices, change the IP of my NAS, do a reboot of my router to redo DHCP lease. Change the IP-Adress in both MoOde devices, finished. Can someone tell me in which file the credentials and the IP-Adress is stored onto the system? So my last change if something goes wrong is to apply changes to the file via ssh. Has someone experience with using a device with fixed IP onto the device IN the DHCP-Range? I am unsure if i can fix the IP-Adress in my router AND turn the static IP onto the device on. The whole thing is about the dns-server.. My pihole is connected via DHCP, which gives the Piholedevice the DNS of Pihole.. Nice loop...... I have the possibility to change the IP to static AND change the DNS fixed to Cloudflare. But i see no possibility to stay in DHCP AND change the local DNS-Server manually.. Greets, Tom RE: In which file are the credentials / IP-Adress / Path stored? - Tim Curtis - 03-28-2024 The boot shouldn't hang just because a Samba mount fails. If it were NFS then yes there is some sort of long timeout (minutes) before a failed mount gives up. At least thats how it used to be. The remote mount params are contained in cfg_source table The network params are contained in cfg_network table Code: moodeutl -q "select * from cfg_source" But just changing values in the SQL tables directly generally won't work because when these values are changed by the Config Screens or other parts of the WebUI there is underlying code that also gets executed to update session variables, config files, related SQL tables.etc. RE: In which file are the credentials / IP-Adress / Path stored? - Nutul - 03-28-2024 (03-28-2024, 07:07 PM)muddiver Wrote: Has someone experience with using a device with fixed IP onto the device IN the DHCP-Range?You may not want to do that. Usually the routers offer you a range of addresses to be delivered by DHCP, and you chose static IPs outside such range... On mine for instance I reserved the first 50 addresses - 10.131.120.1-50 - for DHCP, therefore from 51 to 254 can be used for static ones. Setting a static IP in the DHCP range can result in two devices wanting the same IP, and you do not want that, right? RE: In which file are the credentials / IP-Adress / Path stored? - muddiver - 03-29-2024 Hi! @Tim, Thanks for the explanation! I thought it is more like in Kodi.. @Nutul Thanks for your thoughts, i will change the IP to an Range NON-DHCP! But do you think that when i configure my router to fix the IP for a specific device ( which is done via MAC-adress, i think ), and configure on the device itsself a static-ip, do you think that should work? I cannot see why there should be problems.. Sure, when i change the routerconfiguration, or when i buy a new router and forget to fix the ip again, there will be problems, for sure.. Greets, Tom RE: In which file are the credentials / IP-Adress / Path stored? - Tim Curtis - 03-29-2024 If you set a reserved IP address in your Router for the Pi's MAC then set the Pi to DHCP. |