使用 Parallels 在 IE 中测试 Web 应用程序

发布于 2024-07-26 10:20:44 字数 201 浏览 3 评论 0原文

我正在 Mac 上的 Pylons 中开发 Web 应用程序。 我的开发服务器向 http://127.0.0.1:5000/ 提供页面。 有什么方法可以让我从 Parallels 访问此页面并使用 IE 进行测试,而无需在 Windows 中设置开发环境?

I am developing a Web application in Pylons on the Mac. My development server serves pages to http://127.0.0.1:5000/. Is there any way that I can access this page from Parallels for testing with IE without having to set up a development environment in Windows?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

万劫不复 2024-08-02 10:20:44

环回地址 (127.0.0.1) 只能由您的本地计算机访问。 在这种情况下,Parallels 被视为另一台(虚拟)机器。 虽然 Parallels 可以配置为使用与主机操作系统相同的 IP 地址,但它无法共享环回地址。

要从 Parallels 访问 Mac 上提供的页面,您可以将 Pylons 使用的 IP(主机)更改为本地网络的 IP,而不是环回地址。 在development.ini中更改主机设置。

The loopback address (127.0.0.1) is only accessible by your local machine. In this case Parallels is considered another (virtual) machine. While Parallels can be configured to use the same IP address as the host operating system, it cannot share the loopback address.

To access pages served on your Mac from Parallels you can change the IP (host) used by Pylons to that of your local network instead of the loopback address. In the development.ini change the host setting.

黯淡〆 2024-08-02 10:20:44

您是否尝试过使用计算机名称而不是 127.0.0.1,例如 http://MyIMac:5000/

Have you tried using your machine name instead of 127.0.0.1, e.g. http://MyIMac:5000/ ?

请爱~陌生人 2024-08-02 10:20:44

对我来说,问题是我忘记从 Windows 浏览器的代理设置中排除我的 mac 的 IP 地址(我在浏览器中使用公司代理)。

For me the problem was that I forgot to exclude my mac's ip address from the windows browser's proxy settings (I was using a corporate proxy in the browser).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文