I have been developing a management system in C#.Net winforms. I need to use a centralized database through LAN.
Scenario:
I have to apply some checks that if someone wants to copy my software to some other computer, he would not be able to run it on the other computer, since I would give my clients software, they would run it and everything will be configured through wizard.
Earlier Workaround:
Earlier, I was storing my MAC address of local machine in database, but problem was that When i needed to connnect more than one computer to the same database, each computer was having it's own MAC address.
My opinion:
So, I thought that in the first time run of software I should save some unique thing like net_address of installed SQL Server in database so that any client can connect to database and database should have get net_address of SQL Server. It also caused a problem that when I did reset my wifi the net_address changed. So SQL was not recognizing lastly saved net_address address since It was continously changing.
Problem:
Now I need some idea how to work over it? I have to get some unique thing that can be used to check in future if the MAC address of the machine is same as the one for which it had been installed on! Many ideas are welcomed.