Hello,
Another day, another question :) i've been using the (simplified) code below
> to determine the ip address of the device (or simulator). This works
> perfectly on the ipad/iphone simulator, and also on the real ipad device,
> but not on the iphone.
>
You can try this code instead:
foreach (var iff in NetworkInterface.GetAllNetworkInterfaces ()){
Console.WriteLine (iff.ToString());
foreach (var a in iff.GetIPProperties ().UnicastAddresses)
Console.WriteLine (a.Address);
That uses the device APIs to fetch the list of interfaces and the IP
addresses associated with each interface.
Miguel
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch