我可以通过 IP 和子网运行/访问本地主机服务器吗?
我是否可以在我的计算机上运行网络服务器(共享 IP)并使用我的 IP + 子网远程访问它,或者至少以某种不涉及让 IT 人员对当前运行我们的计算机进行更改的方式进行访问虚拟服务器和/或路由我们的子网?
理由: 我正在使用计算机工作,并且正在更改 Google 网站优化工具的插件。我希望 GWO 能够访问本地主机(即我的开发环境),这样我在试探系统时就不必将每个更改部署到生产服务器。 (大量更改;繁琐的部署占用了大部分时间)
我不能只向 GWO 提供我的 IP,因为它指向我们的生产服务器(我们工作中的所有计算机都在同一 IP 上)。如果我可以构造一个仅指向我的计算机的 URI,那么我想我可以让 GWO 查看我的开发环境中的页面并与之交互。
实现这一目标不仅在当前情况下有帮助,而且对我也有很大帮助,因为我可以让我的老板在闲暇时从他自己的机器上查看我在开发中获得的内容,而无需将更改部署到生产中。
Is it possible for me to run a webserver on my computer (shared ip) and access it remotely using my ip + subnet or at least some way that doesn't involve having the IT guys make changes to the machine(s) currently running our virtual servers and/or routing our subnet?
Rationale:
I'm on a computer at work, and I'm making changes to a plugin for Google Website Optimizer. I want GWO to be able to access localhost (i.e. my development environment) so that I don't have to deploy every change to the production server while I'm feeling out the system. (lots of changes; tedious deployment takes up most of the time)
I can't just supply my IP to GWO because that points to our production server (all of our computers at work are on the same IP). If I could construct a URI that points just to my computer, then I suppose I could let GWO view a page on my development environment and interact therewith.
Not only would achieving this purpose be helpful in present circumstances, but it would aid me immensely in that I could let my boss look at what I've got in dev, from his own machine, at his leisure, without deploying changes to production.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不熟悉 Google 网站优化器,也不熟悉您可能编写的插件的执行方式/位置。因此,我将总结我对您的问题的理解(包括一些猜测),并从那里开始,如果我错了,请纠正我。
首先(假设以上所有内容都是正确的):
使用我的 IP + 子网远程访问它
- 不。不可能。第二个:
我可以让我的老板看看我的开发内容
- 简单,让他将浏览器指向内部网络上工作站的 IP 地址。远程访问的可能解决方案:
dev.your-company
)并将其指向您公司的 IP 地址。如果使用 SSL,则更难实现。然后你可以:/dev/
)http://www.your-company:8080/
I'm not familiar with the Google Website Optimizer, or how/where a plugin for it that you might write would be executed. So I'm going to summarize what I understand about your problem (including some guesses) and go from there, please correct me if I'm wrong.
First up (assuming everything above is correct):
access it remotely using my ip + subnet
- No. Not possible.Second up:
I could let my boss look at what I've got in dev
- Easy, get him to point his browser at your workstation's IP address on your internal network.Possible solutions for remotely accessible:
dev.your-company
) and pointing it to your company's IP address. If SSL is in use this is harder to achieve. You could then:/dev/
)http://www.your-company:8080/