class Sys {

    private String name; //系统名称

    private String arch; //架构

    private String hostName; //主机名称

    private Date date; //服务器时间

    @SneakyThrows
    Sys() {
        InetAddress addr = InetAddress.getLocalHost();
        this.setHostName(addr.getHostName());
        OperatingSystemMXBean osb = ManagementFactory.getOperatingSystemMXBean();
        this.setName(osb.getName() + " " + osb.getVersion());
        this.setArch(osb.getArch());
        this.setDate(new Date());
    }

    //获取服务器IP地址
    @SneakyThrows
    public static String getServerIp() {<FILL_FUNCTION_BODY>}

}

        Enumeration<NetworkInterface> netInterfaces = NetworkInterface.getNetworkInterfaces();
        while (netInterfaces.hasMoreElements()) {
            InetAddress addr = netInterfaces.nextElement().getInetAddresses().nextElement();
            if (addr instanceof Inet4Address) {
                if (addr.isSiteLocalAddress() && !addr.isLoopbackAddress()) {
                    return addr.getHostAddress();
                }
            }
        }
        return InetAddress.getLocalHost().getHostAddress();
    
<no_super_class>