public class IpAddressUtil extends Object
| Constructor and Description |
|---|
IpAddressUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getIp()
get ip address
|
static String |
getIpPort(int port)
get ip:port
|
static String |
getIpPort(String ip,
int port) |
static InetAddress |
getLocalAddress()
Find first valid IP from local network card
|
static Object[] |
parseIpPort(String address) |
public static InetAddress getLocalAddress()
public static String getIp()
public static String getIpPort(int port)
port - portCopyright © 2022. All rights reserved.