获取本机IP的方法
摘要:
隐藏行号 复制代码 ? 源代码 public static String[] getAllLocalIP() { String[] localServers = null; try { InetAddress addr = InetAddress.getLocalHost(); String hostName = addr.getHostName().toString(); // 获取本机ip I... 阅读全文
posted @ 2009-11-08 12:39 飞飞狐 阅读(355) 评论(0) 推荐(0) 编辑