code: public static LinkedHashSet<String> localIpv4s() {
  		Enumeration<NetworkInterface> networkInterfaces = null;
  		try {
  			networkInterfaces = NetworkInterface.getNetworkInterfaces();
  		} catch (SocketException e) {
  			throw new UtilException(e);
  		}
  
  		if (networkInterfaces == null) {
  			throw new UtilException("Get network interface error!");
  		}
  
  		final LinkedHashSet<String> ipSet = new LinkedHashSet<>();
  
  		while (networkInterfaces.hasMoreElements()) {
  			final NetworkInterface networkInterface = networkInterfaces.nextElement();
  			final Enumeration<InetAddress> inetAddresses = networkInterface.getInetAddresses();
  			while (inetAddresses.hasMoreElements()) {
  				final InetAddress inetAddress = inetAddresses.nextElement();
  				if (inetAddress != null && inetAddress instanceof Inet4Address) {
  					ipSet.add(inetAddress.getHostAddress());
  				}
  			}
  		}
  
  		return ipSet;
  	}
docs: 获得本机的IP地址列表<br>
  返回的IP列表有序，按照系统设备顺序
  
  @return IP地址列表 {@link LinkedHashSet}