我曾经通过[computername] .local:3000访问localhost:3000提供应用程序 Mountain Lion的最新更新删除了Web共享
我已安装了http://clickontyler.com/blog/2012/02/web-sharing-mountain-lion/
中的网络共享偏好设置面板但是我仍然无法通过ie7
从Windows XP访问它有什么想法吗?
答案 0 :(得分:1)
为了让其他计算机能够访问它,他们需要知道它在哪里。
这是“hosts”文件的来源。
在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
如果您仍然无法访问它,请尝试以下操作并使用结果更新您的问题: