public class NetworkUtils extends Object
| Constructor and Description |
|---|
NetworkUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
findHostAddress() |
static InetAddress |
findLocalAddress() |
public static String findHostAddress() throws SocketException, UnknownHostException
SocketExceptionUnknownHostExceptionpublic static InetAddress findLocalAddress() throws UnknownHostException, SocketException
UnknownHostExceptionSocketExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.