获取IP地址及端口的java工具类
public class IPUtil {
public static String getIPAddress() {
// 获取IP地址的逻辑
}
public static int getPort() {
// 获取端口的逻辑
}
}
下载地址
用户评论