/** * Get the publicly resolvable hostname of the current host machine. * * @return The publicly resolvable hostname of the current host machine. */ public static InetAddress getPublicLocalHost() { return localToPublic(new InetSocketAddress(0)).getAddress(); }