Skip to content

License system only allows my c# app to run on a special ip

Noel Retros

Asked Apr 8, 2015, 2:43 PM EDT2 answers
Share
LinkedInX
Hello! is it possible to only allow my c# application to run on a special ip ?

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    yes you can but first you have to get the MAC Address of system.
    0
  • 0
    Code
    var macAddr =      (         from nic in NetworkInterface.GetAllNetworkInterfaces()         where nic.OperationalStatus == OperationalStatus.Up         select nic.GetPhysicalAddress().ToString()     ).FirstOrDefault();
    
    
    ?
    0