想要编写我的第一个可访问网络的程序
我一直在开发一个程序,该程序基本上会盘点我公寓周围的食物,并根据不同的参数推荐膳食。我希望用 c++/CLI 对其进行编程(因为我最近花了很多时间在其中)。我也一直在考虑稍后扩展它,以便管理我的公寓更容易一些。
在研究的过程中,我想到了一个好主意,就是以某种方式将其托管在网上,这样我就可以做一些事情,比如在外出工作或上课时弄清楚晚餐可以吃什么。
到目前为止,我一直在考虑以 asp.net Web 表单托管它(我相信我仍然可以用 c++/CLI 编写它)。有没有更简单的方法来做到这一点,例如直接从我的电脑托管?我只是想避免支付每月的账单,只是为了在旅途中使用它。我刚接触编程几年,所以这是一个非常新的概念。
I've been working on a program that basically takes stock of the food I have around my apartment and recommends meals based a different parameters. I was hoping to program it in c++/CLI (since I have been spending a lot of time in it as late). I have also been thinking of extending it later on down the line to make managing my apartment a little easier.
While working on it, I got the great idea of somehow hosting it online so I can do things like figure out what I can have for dinner while out at work or in class.
So far, I have been looking at hosting it in an asp.net web form (I believe I can still write it in c++/CLI). Is there an easier way to do this, such as hosting it straight from my PC? I kinda just want to avoid paying a monthly bill just to use it on the go. I have only been programming for a few years, so this is a really new concept.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有 IIS(我相信许多较新版本的 Windows 都附带有 IIS),您应该能够在其中部署 ASP 页面并直接从您的家庭计算机托管它,正如您所说的那样。通过浏览器远程访问它所需要的只是您家庭的已知网络地址,该地址会根据您的 IP 是稳定还是动态而有所不同。此外,您的计算机需要运行。
不过,在继续使用之前,绝对应该调查这种方法的安全问题,因为让该应用程序在公共 HTTP 服务器上运行会带来各种问题,从恶作剧(人们监视你正在吃的东西)到灾难性(人们利用您的网络应用程序中的错误会攻击您的计算机)。
If you have IIS (which I believe comes with many newer versions of Windows) you should be able to deploy your ASP page there and host it, as you said, right from your home computer. All you would need to access it remotely via a browser would be a known network address for your home--which would vary depending on if your IP was stable or dynamic. Also, your computer would need to be running.
The security concerns of this approach should definitely be investigated before you go ahead with it, though, as having that app running on a public HTTP server has issues ranging from the mischievous (people spying on what you are eating) to the catastrophic (people exploiting bugs in your web app to attack your computer).