Mac InetAddress.getLocalHost().getHostAddress(); 很慢 发表于 2021-09-02 更新于 2022-01-12 分类于 计算机基础 本文字数: 147 阅读时长 ≈ 1 分钟 Mac InetAddress.getLocalHost().getHostAddress(); 很慢解决方案 就是把本机的hostname 添加到 hosts 中,例如: 0.0.1 mac-mini.local::1 mac-mini.local 执行 scutil –set HostName “localhost”