다음을 통해 공유


InetAddress.LoopbackAddress Property

Definition

Returns the loopback address.

public static Java.Net.InetAddress LoopbackAddress { [Android.Runtime.Register("getLoopbackAddress", "()Ljava/net/InetAddress;", "")] get; }
[<get: Android.Runtime.Register("getLoopbackAddress", "()Ljava/net/InetAddress;", "")>]
static member LoopbackAddress : Java.Net.InetAddress

Property Value

the InetAddress loopback instance.

Attributes

Remarks

Returns the loopback address.

The InetAddress returned will represent the IPv4 loopback address, 127.0.0.1, or the IPv6 loopback address, ::1. The IPv4 loopback address returned is only one of many in the form 127.*.*.*

Added in 1.7.

Java documentation for java.net.InetAddress.getLoopbackAddress().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to