IPAddress.Loopback Field


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

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

Public Shared ReadOnly Loopback As IPAddress

Field Value

Type: System.Net.IPAddress

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

The following example prints the Loopback address to the console.

Public Sub PrintLoopbackAddress()
    ' Gets the IP loopback address and converts it to a string.
    Dim IpAddressString As [String] = IPAddress.Loopback.ToString()
    Console.WriteLine(("Loopback IP address : " + IpAddressString))
End Sub 'PrintLoopbackAddress

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top