IPAddress.Loopback Field

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

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

public static readonly IPAddress Loopback

The Loopback field is equivalent to 127.0.0.1 in dotted-decimal notation.

The following example prints the IPv4 Loopback address.


   // Gets the IP loopback address and converts it to a string.
   string LoopbackIpAddressString = IPAddress.Loopback.ToString();

   outputBlock.Text += "Loopback IP address: ";
   outputBlock.Text += LoopbackIpAddressString;
   outputBlock.Text += "\n";



Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: