我用來訪問本地主機:3000通過[計算機]煮好的應用程序。本地:3000 最近的山獅的更新中刪除Web共享如何在使用Windows機器的網絡上的OS X上訪問localhost:3000?
我已經安裝了http://clickontyler.com/blog/2012/02/web-sharing-mountain-lion/
這裏找到Web共享偏好設置面板但唉,我仍然無法訪問它從Windows XP上ie7
任何想法?
我用來訪問本地主機:3000通過[計算機]煮好的應用程序。本地:3000 最近的山獅的更新中刪除Web共享如何在使用Windows機器的網絡上的OS X上訪問localhost:3000?
我已經安裝了http://clickontyler.com/blog/2012/02/web-sharing-mountain-lion/
這裏找到Web共享偏好設置面板但唉,我仍然無法訪問它從Windows XP上ie7
任何想法?
爲了讓其他電腦能夠訪問它,他們需要知道它在哪裏。
這就是「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
如果仍然不能訪問它,嘗試以下方法與結果更新你的問題:
太棒了,謝謝! – Jack