I have created a Windows Forms Application on Visual Studio using C#. This application connects to a mysql server which has the database. The connection to the server is currently being done with this line of code:
string connStr = @"server=192.168.1.5;userid=vangelis;password=121298;database=mydatabase";
However I am intending to sell the application to multiple customers. I am assuming that on the computer of each customer I will have to install mysql workbench and create the database. However the rest of the computers in their office will connect to the computer with the mysql workbench. However the problem is the
server=192.168.1.5
Their computers will most definetely have different ip's. How can I fix this problem without changing this line of code for each customer?