klyn.net.InetAddress.getByName
method
public static getByName(host as String) as InetAddress
Description

Resolves one host name to an internet address.

Parameters
ParameterDescription
hostHostname or numeric IPv4/IPv6 address; empty means wildcard.
Returns

The resolved numeric address and original hostname.

Throws
  • UnknownHostException if the host cannot be resolved.
Example

address = InetAddress.getByName("localhost")