Package com.glitchybyte.glib
Class GNetwork
java.lang.Object
com.glitchybyte.glib.GNetwork
Network utilities.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns all currently up IPv4 addresses of this host.
-
Field Details
-
LOCALHOST
Constant for localhost network address.- See Also:
-
-
Method Details
-
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.
-