从远程访问本地主机上的站点

问题描述:

我曾经在我的本地主机上开发我的项目,在 ubuntu 机器上的 apache 上.有时我需要向我的客户展示进度.是否可以从远程机器访问本地主机?

I use to develop my project on my localhost, on apache in ubuntu machine. Sometimes i need to show progress to my costumer. Is it possible to access to localhost from remote machine?

您可以使用为本地服务提供隧道的服务,例如 localtunnel、pagekite 或 ngrok.这些服务简化了远程演示、移动测试的设置,有些还提供请求检查.

You can use a service that provides a tunnel to your local service, such as localtunnel, pagekite or ngrok. These services simplify setting up remote demos, mobile testing and some provide request inspection as well.

我发现 ngrok 很有用,因为它提供了一个 https 地址,这是测试网络摄像头访问等内容所必需的.

I find ngrok useful because it provides a https address, which is needed to test things like webcam access.