InetAddress.GetAddress Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.