Companion

object Companion

Types

Link copied to clipboard

Properties

Link copied to clipboard
const val IPv4: Int = 1

Specify the address family: Internet Protocol, Version 4

Link copied to clipboard
const val IPv6: Int = 2

Specify the address family: Internet Protocol, Version 6

Functions

Link copied to clipboard

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

Creates an InetAddress based on the provided host name and IP address. The system-wide InetAddressResolver is not used to check the validity of the address.

Link copied to clipboard

Determines the IP address of a host, given the host's name.