IPGlobalStatistics.NumberOfIPAddresses Property

Gets the number of Internet Protocol (IP) addresses assigned to the local computer.

Namespace:  System.Net.NetworkInformation
Assembly:  System (in System.dll)

public abstract int NumberOfIPAddresses { get; }

Property Value

Type: System.Int32
An Int64 value that indicates the number of IP addresses assigned to the address family (Internet Protocol version 4 or Internet Protocol version 6) described by this object.

The data returned by this property includes addresses of pseudo network interfaces such as tunnels.

If this instance was obtained by calling GetIPv4GlobalStatistics, this property returns the number of IPv4 addresses assigned to the local computer. Similarly, if this instance was obtained by calling GetIPv6GlobalStatistics, this property returns the number of IPv6 addresses assigned to the local computer.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft