title: How do I get the native IP in an Xamarin.MAC program
body: <p>Now we have an Xamarin.mac GUI program that needs to get the native IP.
  I use the following code:</p>
  <p>Dns.GetHostEntry(Dns.GetHostName()).AddressList.First(x=&gt;x.AddressFamily == AddressFamily.InterNetwork);</p>
  <p>it works on my machine, but get error like &quot;Could not resolve host '...'&quot; on some others.</p>
  <p>How can I avoid this error to get the IP ?</p>