[英]Is there a way I can access my Rails Application of my Ubuntu VM from my Windows 7?
I got a Rails application (running on Thin server) running on my Ubuntu VM, how can I be able to access it from my Windows 7 OS? 我在Ubuntu VM上运行了一个Rails应用程序(在Thin服务器上运行),如何从Windows 7 OS中访问它? I already have the VM bridge option enable. 我已经启用了VM Bridge选项。 I tried using the IP address from my Ubuntu VM directly to my windows 7 browser, but nothing happens, is there a way to do that? 我尝试将来自Ubuntu VM的IP地址直接用于Windows 7浏览器,但是没有任何反应,有没有办法做到这一点?
Yes, you can: 是的你可以:
ifconfig | grep inet
on Ubuntu) 您需要知道虚拟机的IP地址(在Ubuntu上为ifconfig | grep inet
) Then in your Windows 7 (or other computer in your local network, your smartphone for instance) you can open a browser and go to your VM's IP address + port (usually 3000). 然后,在Windows 7(或本地网络中的其他计算机,例如智能手机)上,您可以打开浏览器并转到VM的IP地址+端口(通常为3000)。
So, the address to put in your browser might look like this : 因此,放置在浏览器中的地址可能如下所示 :
http://192.168.1.5:3000/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.