public class Net extends Object
| Constructor and Description |
|---|
Net() |
| Modifier and Type | Method and Description |
|---|---|
static SSLContext |
acceptAllSSLContext() |
static int |
freeServerPort() |
static int |
freeServerPort(InetAddress hostAddress) |
static InetAddress |
getLocalHost()
get loopback address
|
static InetAddress |
localHostByName()
Deprecated.
|
static boolean |
localhostIsIPv6() |
public static boolean localhostIsIPv6()
throws UnknownHostException
UnknownHostExceptionpublic static int freeServerPort()
throws IOException
IOExceptionpublic static int freeServerPort(InetAddress hostAddress) throws IOException
IOExceptionpublic static InetAddress getLocalHost() throws UnknownHostException
UnknownHostException@Deprecated public static InetAddress localHostByName() throws UnknownHostException
UnknownHostExceptionpublic static SSLContext acceptAllSSLContext() throws NoSuchAlgorithmException, KeyManagementException
Copyright © 2025. All rights reserved.