如何在 mac 中从外部访问工头端口
how to make foreman port accessible from outside in mac
我有一个 rails 应用程序,它使用工头在 localhost:3001 上服务。
我关闭了整个防火墙,但仍然无法从外部访问它。
如何将此端口共享到网络?
您无法从另一台计算机访问开发模式rails服务器(远程访问)。您需要像这样将服务器绑定到ip:
rails s -b 111.11.11.111 // 111.11.11.111 is an example for ip address
我有一个 rails 应用程序,它使用工头在 localhost:3001 上服务。 我关闭了整个防火墙,但仍然无法从外部访问它。 如何将此端口共享到网络?
您无法从另一台计算机访问开发模式rails服务器(远程访问)。您需要像这样将服务器绑定到ip:
rails s -b 111.11.11.111 //
111.11.11.111 is an example for ip address