InetAddress.GetAddress Method

Definition

Returns the raw IP address of this InetAddress object.

[Android.Runtime.Register("getAddress", "()[B", "GetGetAddressHandler")]
public virtual byte[]? GetAddress ();
[<Android.Runtime.Register("getAddress", "()[B", "GetGetAddressHandler")>]
abstract member GetAddress : unit -> byte[]
override this.GetAddress : unit -> byte[]

Returns

Byte[]

the raw IP address of this object.

Attributes

Remarks

Returns the raw IP address of this InetAddress object. The result is in network byte order: the highest order byte of the address is in getAddress()[0].

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

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