import java.net.InetAddress;
import java.net.UnknownHostException;
/**
* @Author : yc.min
*/
public class IpUtils {
public static String localIp(){
//服务的地址
InetAddress address;
String localIp = "";
try {
address = InetAddress.getLocalHost();
localIp = address.getHostAddress();
} catch (UnknownHostException e) {
e.printStackTrace();
}
return localIp;
}
}