Class GNetwork

java.lang.Object
com.glitchybyte.glib.GNetwork

public final class GNetwork extends Object
Network utilities.
  • Field Details

  • Method Details

    • getHostIPv4Addresses

      public static Set<String> getHostIPv4Addresses()
      Returns all currently up IPv4 addresses of this host.

      Loopback addresses are returned as a single "localhost" entry. And in case of an exception, it will return en empty set.

      This method is designed to be a convenience.

      Returns:
      Set of IPv4 addresses that are currently up.