public class NetUtil
extends java.lang.Object
Constructor and Description |
---|
NetUtil() |
Modifier and Type | Method and Description |
---|---|
static java.net.InetAddress |
getLocalHost()
Smarter way to get localhost than InetAddress.getLocalHost.
|
public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException, java.net.SocketException
java.net.UnknownHostException
java.net.SocketException