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