title: Query Local IP Address
body: <p>I have the need to know my actual local IP address (i.e. not the loopback address) from a <strong>Windows 8 WinRT/Metro</strong> app.  There are several reasons I need this.  The simplest is that in the UI of the app I'd like to show some text like "Your local network IP address is: [IP queried from code]".  </p>
  
  <p>We also use the address for some additional network comms.  Those comms are perfectly valid because it all works if I look at the IP address in the Control Panel, then hard-code it into the app.  Asking the user in a dialog to go look at the address and manually enter it is something I really, really want to avoid.</p>
  
  <p>I would think it wouldn't be a complex task to get the address programmatically, but my search engine and StackOverflow skills are coming up empty.</p>
  
  <p>At this point I'm starting to consider doing a UDP broadcast/listen loop to hear my own request and extract the address from that, but that really seems like a hackey kludge.  Is there an API somewhere in the new WinRT stuff that will get me there?</p>
  
  <p>Note that I said "WinRT app. That means the typical mechanisms like <code>Dns.GetHostEntry</code> or <code>NetworkInterface.GetAllInterfaces()</code> aren't going to work.</p>