public class HostnameGuesser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HostnameGuesser.CIDRBlock
Representation of a single CIDR block (subnet).
|
Constructor and Description |
---|
HostnameGuesser() |
Modifier and Type | Method and Description |
---|---|
static java.net.InetAddress |
findInetAddressForSelf(java.lang.String ip,
java.lang.String network)
Finds InetAddress for a specified IP, guesses the address if parameter is not specified
(uses network as a hint if provided).
|
public static java.net.InetAddress findInetAddressForSelf(java.lang.String ip, java.lang.String network) throws java.lang.Error
ip
- ip address (optional)network
- network (optional)java.lang.Error