IPGlobalProperties.GetUnicastAddressesAsync Method ()
Retrieves the stable unicast IP address table on the local computer as an asynchronous operation.
Assembly: System (in System.dll)
[HostProtectionAttribute(SecurityAction.LinkDemand, ExternalThreading = true)] public virtual Task<UnicastIPAddressInformationCollection> GetUnicastAddressesAsync()
In order to support outbound connections or to accept incoming connections on a Teredo interface, applications need to ensure that the Teredo interface is up and ready for use. This is because Teredo can go into a dormant state when not used for some period of time.
The IPAddress.IsIPv6Teredo property can be used to determine if an IP address is an IPv6 Teredo address with the prefix of 2001::/32.method will allow an application to retrieve the list of stable unicast IP addresses as asynchronous operation. The
The GetUnicastAddresses method also returns non-Teredo addresses and provides a more convenient way to obtain the unicast IP addresses for a system than enumerating all the System.Net.NetworkInformation.NetworkInterface objects on a local computer and querying the associated IP addresses.
Available since 10
Available since 4.5