Please I have a Java Desktop app which connects to a MySQL database and I would like to run the application over a network.
This is what I've done so far. My Java application generates a batch file that points to the original local of the .jar file so I simply place this batch file in other client systems and run them so they simply find the .jar file on the server system and open the application.
But I have an issue, I have a scenario where I don't know the server's system name so I can't specify it in the MySQL database connection string.
Please how can I dynamically get the system name and pass it into the database connection string so the client systems can also connect to the same server or database?