title: Detecting the Loopback Adapter
body: <p>What is the best way for detecting whether a network interface is a loopback adapter?</p>
  
  <p>The windows API's <strong>GetAdaptersInfo</strong> and <strong>GetAdaptersAddresses</strong> state in the documentation that they will return whether an interface is a loopback through the Type (<strong>MIB_IF_TYPE_LOOPBACK</strong>) but neither of these do for the Microsoft Loopback Adapter at least, it is reported as a standard ethernet interface.</p>
  
  <p>I could try checking for the <strong>default MAC</strong> of the Loopback adapter but this can be easily spoofed.</p>
  
  <p>I could check for the name "<strong>Microsoft Loopback Adapter</strong>" in the description but this may have translation issues and may lead to other issues.</p>
  
  <p><strong>IP addresses</strong> can also be changed.</p>
  
  <p>What is the most robust method for doing this?</p>