| Modifier and Type | Field and Description |
|---|---|
| private static String | |
| private static InetAddress | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static InetAddress | |
| public static String | |
| public static String | Returns: Machine's host name. This method can be better to call than getting it offgetLocalHost() because sometimes the external address returned by that function does not have a useful hostname attached to it.
This function will make sure a good value is returned.
|
| hostName | back to summary |
|---|---|
| private static String hostName | |
| localHost | back to summary |
|---|---|
| private static InetAddress localHost | |
| UNKNOWN_HOST_NAME | back to summary |
|---|---|
| private static final String UNKNOWN_HOST_NAME | |
| NetUtil | back to summary |
|---|---|
| private NetUtil() | |
| getLocalHost | back to summary |
|---|---|
| private static InetAddress getLocalHost() throws UnknownHostException, SocketException Smarter way to get localhost than InetAddress.getLocalHost.
| |
| getLocalHostAddress | back to summary |
|---|---|
public static String getLocalHostAddress()
| |
| getLocalHostName | back to summary |
|---|---|
public static String getLocalHostName()
| |