public final class NetworkUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static InetAddress |
getLocalHost() |
static String |
getLocalHostIp(String host)
Resolves a local IP for a host name.
|
public static InetAddress getLocalHost() throws UnknownHostException
UnknownHostExceptionpublic static String getLocalHostIp(String host) throws UnknownHostException
InetAddress since the InetAddress
performs logic each time it has to resolve the host address.host - the host nameUnknownHostExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.