Export (0) Print
Expand All

IPAddress.Loopback Field

Provides the IP loopback address. This field is read-only.

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

public static readonly IPAddress Loopback

The Loopback field is equivalent to in dotted-quad notation.

The following example prints the Loopback address to the console.

public void PrintLoopbackAddress()
  // Gets the IP loopback address and converts it to a string.
  String IpAddressString = IPAddress.Loopback.ToString();
  Console.WriteLine("Loopback IP address : " + IpAddressString);

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
© 2015 Microsoft