public class IpUtil extends Object
| 构造器和说明 |
|---|
IpUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 - Copyright © 2023. All rights reserved.