Class IPGlobalProperties
Provides information about the network connectivity of the local computer.
Inherited Members
Namespace: System.Net.NetworkInformation
Assembly: System.Net.dll
Syntax
public static class IPGlobalProperties
Methods
GetIPAddress()
Gets the IP address of the network interface.
Declaration
public static IPAddress GetIPAddress()
Returns
Type | Description |
---|---|
IPAddress | An IPAddress if a valid IP address is available; otherwise, an Any. |
Remarks
This method is exclusive of .NET nanoFramework.