2013年12月7日
摘要: /** * 获取本机的Ip * * @return */ public String getLocalIpAddress() { try { for (Enumeration en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) { NetworkInterface intf = en.nextElement(); for (Enumeration enumIpAddr = i... 阅读全文
posted @ 2013-12-07 20:48 小计天空 阅读(407) 评论(0) 推荐(0) 编辑