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