public class NetworkUtil extends Object
| Constructor and Description |
|---|
NetworkUtil() |
| Modifier and Type | Method and Description |
|---|---|
static InetAddress |
getLocalHostAddress()
Gets the InetAddress of the localhost.
|
public static InetAddress getLocalHostAddress() throws UnknownHostException
UnknownHostException - if the local host address could not be obtainedCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.