2012-12-01 37 views

回答

1

爲了讓其他電腦能夠訪問它,他們需要知道它在哪裏。

這就是「hosts」文件進來。

在你的Windows XP機器,打開記事本作爲管理員。從記事本中,點擊頂部菜單中的「文件」>「打開」。

現在打開C:\ WINDOWS \ SYSTEM32 \ DRIVERS \等\主機

該文件應類似於一些我所粘貼下面:

# 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 

現在,添加本地IP地址OSX機器的主機名與要在瀏覽器中訪問它的主機名稱。您可以在網絡偏好設置面板中找到你的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機器會知道,爲了訪問[計算機名]。本地,它需要聯繫電腦192.168.0.100

假設你的網絡服務器在線,並被配置爲接受端口3000上的連接,你可以打開在Windows XP和鍵入http網頁瀏覽器:// [計算機名]。本地:3000

如果仍然不能訪問它,嘗試以下方法與結果更新你的問題:

  1. 暫時禁用OSX上的防火牆。這是否允許Windows XP訪問它?
  2. 你從Windows XP獲得什麼錯誤信息?
+0

太棒了,謝謝! – Jack

相關問題