如何让其他人通过我的 WiFi 访问我的本地主机服务器

发布于 2024-11-09 08:47:29 字数 137 浏览 4 评论 0原文

我目前在 Mac 上使用预装的 Apache 服务器。

现在我需要跨浏览器测试一些网站,因此我需要在其他一些计算机上访问我的页面。如何使我的本地主机站点可供我的 WiFi 上的其他计算机访问(无需上传到其他服务器)?

提前致谢。

I am currently on a mac using the pre-installed Apache server.

Now I need to cross-browser test some websites, and therefore I need to access my pages on some other computers. How can I make my localhost-sites accessible for other computers on my WiFi (without uploading to another server)?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘落散花 2024-11-16 08:47:29

Apache 服务器的默认配置应该允许其他计算机(甚至不在本地网络上的计算机)访问它所提供的任何内容。

您可以使用您服务器的 IP 地址从另一台计算机访问您的服务器。您可以通过找到控制台(适用于 Windows 和 Mac 计算机)并输入“ipconfig”来找到服务器的 IP 地址。 (对于 Linux 机器,它是“ifconfig”。)

Apache server's default configuration should allow other computers (even ones not on your local network) to access whatever it's serving up.

You can access your server from another machine by using the IP address of your server. You can find the IP address of your server by finding a console (this works in Windows and Mac machines) and typing in "ipconfig". (For linux machines, it's "ifconfig".)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文