从本地网络上的另一台计算机访问 webrick/rails [英] Access webrick/rails from another computer on local network
本文介绍了从本地网络上的另一台计算机访问 webrick/rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个在 localhost:3000 上运行的 rails 应用程序.我希望从同一网络上的另一台计算机访问它.我觉得我以前很轻松地做到了这一点,但这让我有些悲伤.我可以ping通电脑的IP就好了,但是在浏览器中点击ip:3000不起作用.我也尝试启动 rails s -b ipaddress
,但没有成功.
I have a rails application running on localhost:3000. I wish to access it from another computer on the same network. I feel like i've done this before with ease, but it's giving me some grief. I can ping the IP of the computer just fine, but hitting ip:3000 in the browser doesnt work. I tried launching rails s -b ipaddress
as well, and no luck.
建议?
推荐答案
尝试在端口 80 上运行服务器,您的防火墙可能阻止了端口 3000.
Try running the server on port 80 instead, your firewall is probably blocking port 3000.
这篇关于从本地网络上的另一台计算机访问 webrick/rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文