我曾经通过 [computername].local:3000 访问 localhost:3000 提供应用程序 最近 Mountain Lion 的更新删除了 Web 共享
我已经安装了在这里找到的 Web 共享首选项窗格http://clickontyler.com/blog/2012/02/web-sharing-mountain-lion/
但唉,我仍然无法从 ie7 上的 Windows XP 访问它
有什么想法吗?
我曾经通过 [computername].local:3000 访问 localhost:3000 提供应用程序 最近 Mountain Lion 的更新删除了 Web 共享
我已经安装了在这里找到的 Web 共享首选项窗格http://clickontyler.com/blog/2012/02/web-sharing-mountain-lion/
但唉,我仍然无法从 ie7 上的 Windows XP 访问它
有什么想法吗?
为了让其他计算机能够访问它,他们需要知道它在哪里。
这是“主机”文件的来源。
在您的 Windows XP 机器上,以管理员身份打开记事本。在记事本中,单击顶部菜单中的“文件”>“打开”。
现在打开 C:\Windows\System32\drivers\etc\hosts
该文件应该类似于我在下面粘贴的内容:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
现在,将 OSX 机器的本地 IP 地址与您要在浏览器中访问它的主机名一起添加。您可以在“网络”偏好设置面板中找到您 Mac 的本地 IP 地址(说明可以在此处找到:http: //osxdaily.com/2010/11/21/find-ip-address-mac/)
示例(假设您的 Mac 在本地网络上的 IP 是 192.168.0.100):
192.168.0.100 [computername].local
保存文件。现在您的 Windows XP 机器将知道,为了访问 [computername].local,它需要联系位于 192.168.0.100 的计算机
假设您的 Web 服务器在线,并且配置为接受端口 3000 上的连接,您可以在 Windows XP 上打开 Web 浏览器并输入 http://[computername].local:3000
如果您仍然无法访问它,还请尝试以下操作并使用结果更新您的问题: