title: C# Get Computer's MAC address "OFFLINE"
body: <p>Is there any way to get computer's mac address when there is no internet connection in c#?
  I'am able to get when I have connection but not able to get when I am offline. But strongly I need the mac address for my work.</p>
  
  <p>My online code;</p>
  
  <pre><code>var macAddr =
        (from nic in NetworkInterface.GetAllNetworkInterfaces()
         where nic.OperationalStatus == OperationalStatus.Up
         select nic.GetPhysicalAddress().ToString()).FirstOrDefault();
  </code></pre>