I'm new to linq, and want to use it to get the ip address of an iOS device. I was wondering if anyone sees any problems with this approach (based on this How do I get the network interface and its right IPv4 address? ) or if there is a better/more compact/more clean way to do it.
  // get my IP
  string ip = NetworkInterface.GetAllNetworkInterfaces()
    .Where(x => x.Name.Equals("en0"))
      .Select(n => n.GetIPProperties().UnicastAddresses)
      .Where(x => x.First().Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
      .Select(x => x.First().Address.ToString());
 
     
     
    