docs: @Pure
  	public static Collection<InetAddress> getPrimaryAdapterAddresses() {
  		final Enumeration<NetworkInterface> interfaces;
  		try {
  			interfaces = NetworkInterface.getNetworkInterfaces();
  		} catch (SocketException exception) {
  			return Collections.emptyList();
  		}
  		if (interfaces != null) {
  			NetworkInterface inter;
  			while (interfaces.hasMoreElements()) {
  				inter = interfaces.nextElement();
  				try {
  					final byte[] addr = inter.getHardwareAddress();
  					if (addr != null) {
  						final Collection<InetAddress> inetList = new ArrayList<>();
  						final Enumeration<InetAddress> inets = inter.getInetAddresses();
  						while (inets.hasMoreElements()) {
  							inetList.add(inets.nextElement());
  						}
  						return inetList;
  					}
  				} catch (SocketException exception) {
  					// Continue to the next loop.
  				}
  			}
  		}
  		return Collections.emptyList();
  	}