IPAddress.IsLoopback Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Indicates whether the specified IP address is the loopback address.
Assembly: System.Net (in System.Net.dll)
Parameters
- address
- Type: System.Net.IPAddress
An IP address.
| Exception | Condition |
|---|---|
| ArgumentNullException | The address parameter is Nothing. |
The IsLoopback method compares address to Loopback when the AddressFamily property is InterNetworkV6 and returns true if the two IPv6 addresses are the same.
In the case of IPv4, that the IsLoopback method returns true for any IP address of the form 127.X.Y.Z (where X, Y, and Z are in the range 0-255), not just Loopback (127.0.0.1).