public class InternetUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static InetAddress |
getInetAddress(String hostName)
Gets the Inet address for the graylog2ServerHost and gives a specialised error message if an exception is thrown
|
static String |
getLocalHostName()
Retrieves the local host's hostname.
|
public static String getLocalHostName() throws SocketException, UnknownHostException
SocketExceptionUnknownHostExceptionpublic static InetAddress getInetAddress(String hostName)
Copyright © 2011-2014. All Rights Reserved.