public class NetUtil extends Object
Constructor and Description |
---|
NetUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getLocalHostAddress()
Smarter way to get localhost than InetAddress.getLocalHost.
|
static String |
getLocalHostName() |
public static String getLocalHostAddress() throws UnknownHostException, SocketException
UnknownHostException
SocketException
public static String getLocalHostName() throws UnknownHostException, SocketException
UnknownHostException
SocketException
Copyright © 2017 Liquibase.org. All rights reserved.