访问从另一台计算机本地主机(XAMPP)在LAN网络 - 如何? [英] Accessing localhost (xampp) from another computer over LAN network - how to?
问题描述
我刚才在家里设置一个Wi-Fi网络。我有我的台式电脑(192.168.1.56)上的所有我的文件,并希望在那里从另一台计算机访问本地主机(192.168.1.2)。
I have just set up a wi-fi network at home. I have all my files on my desktop computer (192.168.1.56) and want to access localhost over there from another computer (192.168.1.2).
在我的桌面,我可以通过正常 HTTP访问本地主机。 Apache是在端口80照常运行。
On my desktop I can access localhost through the normal http://localhost. Apache is running on port 80 as usual.
究竟是什么做我必须做的,实现这一目标?有文档在网络上,但他们要么没有工作或太碎片和混乱理解。
Exactly what do I have to do to achieve this? There is documentation on the net but they either don't work or are too fragment and confusing to understand.
我想我必须做出改变我的Apache的httpd.conf文件和hosts文件。任何想法,以什么样的变化,使?
I think I have to make changes to my apache's httpd.conf file and the hosts file. Any ideas as to what changes to make?
推荐答案
本地主机仅仅是回送一个名字,比如它就像提到自己作为我。
Localhost is just a name given for the loopback, eg its like referring to yourself as "me" ..
要从其他计算机上查看它,那么你只需要做的 http://192.168.1.56 或的 HTTP:// myPcsName 如果不工作,有机会,有您的计算机上运行的防火墙,或者在httpd.conf只监听127.0.0.1
To view it from other computers, chances are you need only do http://192.168.1.56 or http://myPcsName if that doesnt work, there is a chance that there is a firewall running on your computer, or the httpd.conf is only listening on 127.0.0.1
这篇关于访问从另一台计算机本地主机(XAMPP)在LAN网络 - 如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!