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