[英]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.