public class NetworkUtil extends Object
Constructor and Description |
---|
NetworkUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getLocalAddress() |
static InetAddress |
getLocalHost() |
static String |
getLocalHostName() |
static String |
getLoopbackAddress() |
static boolean |
hasLocalAddress(Collection<String> endpoints) |
static boolean |
isLocalConnection(String hostname) |
public static String getLoopbackAddress()
public static InetAddress getLocalHost()
public static String getLocalAddress()
public static String getLocalHostName()
public static boolean hasLocalAddress(Collection<String> endpoints)
public static boolean isLocalConnection(String hostname)
Copyright © 2012–2023. All rights reserved.