InetAddress ia = InetAddress.getLocalHost(); String ip = ia.getHostAddress(); String name = ia.getHostName(); log.info(ip); log.info(name);
posted on 2024-11-18 14:37 yxchun 阅读(10) 评论(0) 编辑 收藏 举报