I'm using JRDC2 to query MariaDB from android tablets. This is working quite well with one exception. The Linux DB server runs on the local network and I've got it set to always have an IP address of xxx.xxx.xxx.222. On the tablets, I find the tablets IP address, then use their subnet address and add the .222 in order to "find" the database connection. This works for now, but it's pretty kludgy. If my server goes down and I switch to a backup, which I have running on a Windows machine, I'd have to reconfigure the network in order for it to work. I'd like it to be a bit more dynamic, either using a configuration file, or some other method to determine the IP address of the database server.
Has anyone come up with a method to do this? Or any ideas on what I might try?
Thanks,
Jim
Has anyone come up with a method to do this? Or any ideas on what I might try?
Thanks,
Jim