public static String localIP() {
        if (!StringUtils.isEmpty(localIp)) {
            return localIp;
        }
        if (System.getProperties().containsKey(CLIENT_LOCAL_IP_PROPERTY)) {
            return localIp = System.getProperty(CLIENT_LOCAL_IP_PROPERTY, getAddress());
        }
        localIp = getAddress();
        return localIp;
    }
@Test
    void testLocalIpWithSpecifiedIp() {
        System.setProperty("com.alibaba.nacos.client.local.ip", "10.2.8.8");
        assertEquals("10.2.8.8", NetUtils.localIP());
        System.setProperty("com.alibaba.nacos.client.local.ip", "10.2.8.9");
        assertEquals("10.2.8.8", NetUtils.localIP());
    }