public final class HostNameUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getHostName()
Returns the host name of the local machine.
|
public static java.lang.String getHostName()
InetAddress.getLocalHost()
is tried. If that method does not
return an address with a valid host name or throws an exception,
null
is returned.null
if the host
name cannot be determined.Copyright © 2014–2017 aquenos GmbH. All rights reserved.