public static String getLocalIp() {
        try {
            InetAddress localHost = Inet4Address.getLocalHost();
            return localHost.getHostAddress();
        } catch (UnknownHostException e) {
            log.error(e.getMessage(), e);
        }
        return null;
    }
Get local IP

@return local IP
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/util/NetworkUtils.java