public class IpUtils extends Object
| Constructor and Description |
|---|
IpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<InetAddress> |
getLocalHostLANAddress()
获取本机局域网IP地址
|
static String |
getMac(InetAddress inetAddress) |
static String[] |
getThisUrl(int port,
String contextPath)
输出访问地址
|
public static List<InetAddress> getLocalHostLANAddress()
public static String getMac(InetAddress inetAddress)
Copyright © 2021. All rights reserved.