从来宾连接到 VMWare Fusion 主机上的某个东西 运行

Connect to something running on VMWare Fusion host from guest

我是 运行 我 Mac 上的一个 elasticsearch 服务器,我想从 Windows 10 运行 在 VM Ware 融合中连接到它。我的适配器 运行 处于桥接模式。我读到的所有内容似乎都在说我应该只能使用 Mac IP 地址进行连接,但它不起作用。我在 Mac 和 Windows 上完全关闭了防火墙。我正在尝试从 Windows 访问 Kibana,因此在 Mac 上执行 http://192.168.x.x:5061 from Windows browser, keep getting ERR_CONNECTION_REFUSED in Chrome. I'm able to ping the IP from the guest, so clearly it can see the host, but something is blocking the connection. I tried forwarding port 5601 on my router, that didn't work either. I do also notice that trying to use http://192.168.x.x:5061 本身也不起作用,我认为这可能是问题的根源,但我没有知道如何解决这个问题。

问题不在 VM 上,而是在您的 elasticsearch 配置上...如果您无法使用 Mac 或 VM 连接到它,则意味着问题出在 elasticSearch 上。

想通了。我更改了 Kibana 配置文件以绑定到 0.0.0.0 而不是本地主机。我认为绑定到 localhost 或 127.0.0.1 会自动使其也包括 LAN IP,但你每天都会学到新东西...