Class NetUtils
java.lang.Object
cool.scx.common.util.NetUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InetAddress[]static InetAddress[]getLocalIPAddress(Predicate<InetAddress> filter) 获取本机的 IP 地址 (不包括回环地址)
-
Constructor Details
-
NetUtils
public NetUtils()
-
-
Method Details
-
getLocalIPAddress
获取本机的 IP 地址 (不包括回环地址)- Returns:
- 本机的 IP 地址
- Throws:
SocketException
-
getLocalIPAddress
- Throws:
SocketException
-