Loopback Field
Collapse the table of content
Expand the table of content

IPAddress.Loopback Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

'Declaration
Public Shared ReadOnly Loopback As IPAddress

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

The following example displays the IPv4 Loopback address.


' Gets the IP loopback address and converts it to a string.
Dim IpAddressString As [String] = IPAddress.Loopback.ToString()
outputBlock.Text &= "Loopback IP address: "
outputBlock.Text &= IpAddressString
outputBlock.Text &= vbCrLf


Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft