/** * 获取本机访问地址 * @return */ public static String getIp(){ String ip = ""; try { InetAddress inet = InetAddress.getLocalHost(); ip = inet.getHostAddress(); } catch (UnknownHostException e) { e.printStackTrace(); } return ip; }
获取本机访问地址
猜你喜欢
转载自www.cnblogs.com/tengKing/p/9072371.html
今日推荐
周排行