public class InetAddressUtil
extends Object
| Constructor and Description |
|---|
InetAddressUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLocalHostName() |
static InetAddress |
getLocalInetAddress() |
static InetAddress |
getLoopbackInetAddress() |
public static String getLocalHostName()
throws Exception
Exceptionpublic static InetAddress getLocalInetAddress()
throws Exception
Exceptionpublic static InetAddress getLoopbackInetAddress()
throws UnknownHostException
UnknownHostException