Package com.xxl.job.core.util
Class IpUtil
java.lang.Object
com.xxl.job.core.util.IpUtil
ip tool
- Author:
- xuxueli 2016-5-22 11:38:05
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetIp()get ip addressstatic StringgetIpPort(int port) get ip:portstatic Stringstatic InetAddressFind first valid IP from local network cardstatic Object[]parseIpPort(String address)
-
Constructor Details
-
IpUtil
public IpUtil()
-
-
Method Details
-
getLocalAddress
Find first valid IP from local network card- Returns:
- first valid local IP
-
getIp
get ip address- Returns:
- String
-
getIpPort
get ip:port- Parameters:
port-- Returns:
- String
-
getIpPort
-
parseIpPort
-