Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to add license to vb.net application . a need a to dll to automatical send computerid and activation key ... And i also want how to make our system as licensing server.. i searched many blogs but all in vain .. help me to resolve these
Posted

1 solution

What you are looking for is a web service. Or else use a TCP client/server to authenticate keys and computer ID's used by each user when activating your software on their PC.

Essentially you would have a TCP client in your installer of your application which will query the users input for the Key and their username used to purchase said key.

Your client will then send the inputted details to your TCP server were you will then be able to authenticate the authenticity of the credentials sent.

Your TCP server will then run a check on the servers database (where your TCP server) is also located allowing you to check if the request you received belongs to that user or not. From there is it really common logic what would happen if the credentials were not a match. Your client would then be waiting for confirmation to allow the installer or deny it based on the message sent back from your server.

I advise against DLL's and storing keys or any such method inside them as these can be reverse engineered....without saying more, it would not be a practical approach in my opinion.

Look at the Sockets class and the TCP Listener.

Listener:
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener%28v=vs.110%29.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

Sockets namespace:
http://msdn.microsoft.com/en-us/library/System.Net.Sockets%28v=vs.110%29.aspx

Hope this helps and answers your question. Let me know if i can be of further help. :)
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900