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