public final class HostNameUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getHostName()
Returns the host name of the local machine.
|
public static 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.