liquibase-core/src/main/java/liquibase/util/NetUtil.java
public static String getLocalHostAddress() throws UnknownHostException, SocketException {
        try {
            return getLocalHost().getHostAddress();
        } catch (Exception e) {
            Scope.getCurrentScope().getLog(NetUtil.class).fine(LogType.LOG, "Error getting hostname", e);
            return "unknown";
        }
    }
public static String getLocalHostAddress() throws UnknownHostException, SocketException {
        try {
            return getLocalHost().getHostAddress();
        } catch (Exception e) {
            Scope.getCurrentScope().getLog(NetUtil.class).fine(LogType.LOG, "Error getting hostname", e);
            return "unknown";
        }
    }
public static String getLocalHostAddress ( ) throws UnknownHostException , SocketException { try { return getLocalHost ( ) . getHostAddress ( ) ; } catch ( Exception e ) { Scope . getCurrentScope ( ) . getLog ( NetUtil . class ) . fine ( LogType . LOG , "Error getting hostname" , e ) ; return "unknown" ; } }
Returns Local Host IP Address
@return local Host IP address
@throws UnknownHostException
@throws SocketException
Returns Local Host IP Address