摘要: 如果是在windows环境: 使用InetAddress.getLocalHost()方法即可. import java.net.InetAddress; public class Main { public static void main(String[] args) throws Except 阅读全文
posted @ 2020-05-08 13:45 a-du 阅读(382) 评论(0) 推荐(0) 编辑