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 © 2019. All rights reserved.