public class InetAddressUtil extends Object
Constructor and Description |
---|
InetAddressUtil() |
Modifier and Type | Method and Description |
---|---|
static InetAddress |
getLocalHost()
Methods returns InetAddress for localhost
|
static String |
getLocalHostName() |
public static InetAddress getLocalHost() throws UnknownHostException
UnknownHostException
- if localhost could not be resolvedpublic static String getLocalHostName()
Copyright © 2013 JBoss by Red Hat. All rights reserved.