虚拟IP(私有)
我有一个私有 IP 和一个 vmSphere 帐户凭据。 我可以使用 ip、usename、password 从 Windows 系统使用 vSphere 登录,它提供了 centos 服务器的 RemoteDesktop。我配置了一个 Rails 服务器,当我提供 http://localhost:3000 时,我得到了适当的页面
当我尝试从 Windows ping 到该 IP 地址时,它正在工作,但是当我通过浏览器尝试 ipaddress:3000 时,无法访问 ruby 服务器。记住 IP 是私有范围ip-address
当我使用浏览器尝试 ip(172.16.XX.XX) 时,我没有得到 Apache 页面。但它提供了一个 VmWare 主页。我不知道这些虚拟 ip 的事情。我可以 ping 到与该系统相同的 IP 仅因为它是私有 IP。但不提供 ruby 服务器。
I have a private ip and a vmSphere account credentials.
I can login from a windows system with vSphere using ip,usename,password and it gives RemoteDesktop of a centos server.There i configured a Rails server and i am getting appropriage page when I am giving http://localhost:3000
When i try to ping to that ipaddress from windows it is working,But can't access the ruby server when i am trying ipaddress:3000 through browser.Remember the IP is a private range ip-address
When i am trying the ip(172.16.XX.XX) with browser I am not getting the Apache page.but it is giving a VmWare home page.I don't know about these virtual ip things.I can ping to the same ip from that system only since it is a private ip. But not giving the ruby server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您的服务器进程启动时是否绑定到
0.0.0.0:3000
,而不是仅绑定到本地的127.0.0.1:3000
。测试此功能的一种方法是尝试使用您的主机名或 IP,例如http://192.168.XX:3000/
,其中192.168.XX
是您服务器的 IP 。如果您要在自己的系统以外的系统上使用此功能,您可能需要使用 Passenger 或Pow 启动您的应用程序。 Mongrel 的独立能力有限。
Check that your server process is starting up bound to
0.0.0.0:3000
and not127.0.0.1:3000
which is local only. One way to test this is by trying using your host name or IP, for example,http://192.168.X.X:3000/
where192.168.X.X
is your server's IP.If you're going to be using this on systems other than your own, you may want to use either Passenger or Pow to launch your application. Mongrel is limited in what it can do in a stand-alone capacity.