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 InetAddress getLocalInetAddress() throws Exception
Exceptionpublic static InetAddress getLoopbackInetAddress() throws UnknownHostException
UnknownHostException