简体   繁体   English

如何从另一台计算机访问 localhost 网站?

[英]How to access a localhost website from another computer?

I am building my own website and I want to show my brother on the same network.我正在建立自己的网站,我想在同一个网络上展示我的兄弟。 But localhost is only on my computer... I think at least.但是 localhost 只在我的电脑上......我认为至少。 Is there a way I ca nhost it on the network instead of my computer?有没有办法可以在网络上而不是我的电脑上托管它?

To access your localhost site from another computer, you can use the IP address of the computer on your local network where the site is located (for example: http://192.168.0.2/ ) instead of http://localhost/ or http://127.0.0.1/ which is the same thing. To access your localhost site from another computer, you can use the IP address of the computer on your local network where the site is located (for example: http://192.168.0.2/ ) instead of http://localhost/ or http://127.0.0.1/是一回事。

If you are unable to do this due to a 404 or 403 error, check your web server configuration and/or firewall configuration.如果由于 404 或 403 错误而无法执行此操作,请检查您的 web 服务器配置和/或防火墙配置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过本地主机从同一台计算机访问图像? - how to access a image by localhost from same computer? 身份验证问题 [访问 localhost 网站可以在 mac 上运行 - 但是,我无法从同一网络上的另一台设备访问]? - Authentication Issue [access to localhost website works on mac - however, I cannot access from another device on same network]? 从另一台计算机访问Chrome扩展程序 - Access Chrome extension from another computer 如何从像“ZOOM”这样的网站链接中深层链接计算机软件? - How to deep link computer software from a website link Like "ZOOM"? 如何在网站上直接显示我的计算机上的本地 PDF 文件? - How to display directly a local PDF file from my Computer on the website? 是否可以不必在文件类型的输入字段中浏览计算机中的文件,而是从另一个网站获取文件? - Is it possible not having to browse for a file in your computer at an input field of type file, but to take it from another website? 访问另一个网站的htaccess - Access htaccess of another website 通过连接到iMac的Iphone访问localhost网站 - Access to localhost website with Iphone conected to iMac (Django)如何通过计算机显示图像,而不是在本地主机上搜索图像? - (Django) How to make an image display from my computer instead of being searched on localhost? 如何从wifi网络上的另一台计算机加载html页面 - how to load html page from another computer on wifi network
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM