WindChat/windchat-common/src/main/java/com/windchat/common/utils/IpUtils.java

23 lines
401 B
Java
Executable File

package com.windchat.common.utils;
import java.net.Inet4Address;
import java.net.UnknownHostException;
public class IpUtils {
// public static String getLocalAddress() {
//
// try {
// return Inet4Address.getLocalHost().getHostAddress();
// } catch (UnknownHostException e) {
// e.printStackTrace();
// }
//
// return null;
// }
//
// public static int getPort() {
// return 8448;
// }
}