public final class LocalHostUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static InetAddress |
getLocalHost()
Returns an InetAddress representing the address of the localhost.
|
static String |
getLocalIp() |
public static InetAddress getLocalHost() throws UnknownHostException
UnknownHostException - if there is a problem determining the addresspublic static String getLocalIp()
Copyright © 2008–2018 The Apache Software Foundation. All rights reserved.