通过 wifi 与 ipad 共享本地主机
我真的不知道如何问这个,所以也不知道在哪里搜索。所以..我认为我有一个独特的情况。
我安装了虚拟盒子,上面有一个本地运行的服务器。我通过我的Windows机器而不是主机访问它。通过 127.0.0.1:3001。因此,我在这里开发一个只能托管在虚拟机上的应用程序,因为有很多特定于它的移动部件无法托管在 WAMP 上,甚至无法托管在其他地方的典型 Web 服务器上。虚拟机操作系统是Ubuntu。因此,我遇到了一个小问题,我想看看它在我的 iPad 和其他几台平板电脑上的外观如何,因为就 GUI 而言,内置到 VM 中的软件是基于浏览器的。
所以这就是假装。这是我想使用 ipad 上的内置浏览器导航到 VM 上应用程序的基于浏览器的部分,就像我可以通过主机执行的操作一样。但我并不完全确定如何实现这一目标。它必须通过 Wifi 完成,但我需要做什么来进行相应的设置?
主机是Windows 7 Ultimate,VM是Ubuntu 10.x。这也不是屏幕共享的概念。我不想远程查看 PC,我想在 ipad 浏览器中输入 127.0.0.1:3001 的等效值,然后像在主机上使用虚拟机一样查看服务。
I really have no idea how to ask this, so with that have no idea where to search either. So.. I have a unique situation I think.
I have virtual box installed, with a local running server on it. I access it through my windows machine the host machine rather. via 127.0.0.1:3001. So I am here developing an app that can only be hosted on the virtual machine, as there are a lot of moving parts specific to it that can't be hosted on a WAMP or even a typical web-server elsewhere. The vm OS is Ubuntu. So here I am with a slight issue I want to see how this looks on my iPad, and a couple other tablets as the software being built into the VM is browser based as far as the GUI goes.
So theres the pretense. Heres the delima I want to use the built in browser on ipad to navigate to the browser based portion of my app on the VM like I can do through the Host machine. But Im not entirely sure how to achieve that. Its gotta be done over Wifi but what would I need to do to set that up accordingly?
Host Machine is Windows 7 Ultimate, VM is Ubuntu 10.x. This is not a screen sharing notion either. I don't want a to remote view the PC I want to type in the equivilant of 127.0.0.1:3001 into my ipad browser and view the service like I do vm to host machine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
更改虚拟机上的网络虚拟卡参数。您应该选择“bridget”卡而不是 NAT 或仅主机。这样虚拟机就获得了一个网络IP,你可以从你的IPAD连接到这个IP。
Change network virtual card on virtual machine parameters. You should select 'bridget' card insteat NAT or Host only. In this way virtual machine get a network IP and you can connect to this IP from your IPAD.
Forward 对于这样的事情非常有用 https://forwardhq.com/
Forward works great for things like this https://forwardhq.com/